diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2013-03-24 07:51:18 +0100 |
|---|---|---|
| committer | Marvin Löbel <loebel.marvin@gmail.com> | 2013-03-26 14:59:17 +0100 |
| commit | b9de2b5787440bbb196fd38223ef4a6a6f196f83 (patch) | |
| tree | a724b2b66ef1aaccddae1398cdc098714326f2f6 /src/libcore/num | |
| parent | d74606ead60d524eb72afad2cd8b45facd6c5d40 (diff) | |
| download | rust-b9de2b5787440bbb196fd38223ef4a6a6f196f83.tar.gz rust-b9de2b5787440bbb196fd38223ef4a6a6f196f83.zip | |
Switched over a bunch of splitting funktions to non-allocating iterators
Diffstat (limited to 'src/libcore/num')
| -rw-r--r-- | src/libcore/num/strconv.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/num/strconv.rs b/src/libcore/num/strconv.rs index e73a4a2ccaa..ce6c015c131 100644 --- a/src/libcore/num/strconv.rs +++ b/src/libcore/num/strconv.rs @@ -132,10 +132,10 @@ impl_NumStrConv_Integer!(u64) // Special value strings as [u8] consts. -const inf_buf: [u8*3] = ['i' as u8, 'n' as u8, 'f' as u8]; -const positive_inf_buf: [u8*4] = ['+' as u8, 'i' as u8, 'n' as u8, 'f' as u8]; -const negative_inf_buf: [u8*4] = ['-' as u8, 'i' as u8, 'n' as u8, 'f' as u8]; -const nan_buf: [u8*3] = ['N' as u8, 'a' as u8, 'N' as u8]; +static inf_buf: [u8*3] = ['i' as u8, 'n' as u8, 'f' as u8]; +static positive_inf_buf: [u8*4] = ['+' as u8, 'i' as u8, 'n' as u8, 'f' as u8]; +static negative_inf_buf: [u8*4] = ['-' as u8, 'i' as u8, 'n' as u8, 'f' as u8]; +static nan_buf: [u8*3] = ['N' as u8, 'a' as u8, 'N' as u8]; /** * Converts a number to its string representation as a byte vector. |
