about summary refs log tree commit diff
path: root/src/libunicode
diff options
context:
space:
mode:
authorEduard Burtescu <edy.burt@gmail.com>2015-03-03 10:42:26 +0200
committerManish Goregaokar <manishsmail@gmail.com>2015-03-05 12:38:33 +0530
commite64670888a2839ba75237b1934c440c4c319b1bb (patch)
tree20e71f3ff12cd8ffd7ddf5cbc7cba29f8149d6df /src/libunicode
parent68740b405404a3f885e388c8d31722797d519c30 (diff)
downloadrust-e64670888a2839ba75237b1934c440c4c319b1bb.tar.gz
rust-e64670888a2839ba75237b1934c440c4c319b1bb.zip
Remove integer suffixes where the types in compiled code are identical.
Diffstat (limited to 'src/libunicode')
-rw-r--r--src/libunicode/u_str.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libunicode/u_str.rs b/src/libunicode/u_str.rs
index 38cbe5c7dea..57439addeaa 100644
--- a/src/libunicode/u_str.rs
+++ b/src/libunicode/u_str.rs
@@ -525,7 +525,7 @@ impl<I> Iterator for Utf16Encoder<I> where I: Iterator<Item=char> {
             return Some(tmp);
         }
 
-        let mut buf = [0u16; 2];
+        let mut buf = [0; 2];
         self.chars.next().map(|ch| {
             let n = CharExt::encode_utf16(ch, &mut buf).unwrap_or(0);
             if n == 2 { self.extra = buf[1]; }