summary refs log tree commit diff
path: root/src/libserialize
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2016-12-16 18:01:32 +0100
committerest31 <MTest31@outlook.com>2016-12-30 15:17:30 +0100
commit0a481fe5d2a028df806e68a1b91177924a0cda35 (patch)
treeb8f4030a34576819f4cce007a031d24d32ed2747 /src/libserialize
parentdd10c5a5033cd90af65e32a08c43ce5e34fc9168 (diff)
downloadrust-0a481fe5d2a028df806e68a1b91177924a0cda35.tar.gz
rust-0a481fe5d2a028df806e68a1b91177924a0cda35.zip
Fix rebase fallout and compilation fixes
Diffstat (limited to 'src/libserialize')
-rw-r--r--src/libserialize/leb128.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserialize/leb128.rs b/src/libserialize/leb128.rs
index 55ae7ae10f4..392f332d508 100644
--- a/src/libserialize/leb128.rs
+++ b/src/libserialize/leb128.rs
@@ -26,7 +26,7 @@ fn write_to_vec(vec: &mut Vec<u8>, position: usize, byte: u8) {
 /// The callback `write` is called once for each position
 /// that is to be written to with the byte to be encoded
 /// at that position.
-pub fn write_unsigned_leb128_to<W>(mut value: u64, mut write: W) -> usize
+pub fn write_unsigned_leb128_to<W>(mut value: u128, mut write: W) -> usize
     where W: FnMut(usize, u8)
 {
     let mut position = 0;
@@ -48,7 +48,7 @@ pub fn write_unsigned_leb128_to<W>(mut value: u64, mut write: W) -> usize
     position
 }
 
-pub fn write_unsigned_leb128(out: &mut Vec<u8>, start_position: usize, value: u64) -> usize {
+pub fn write_unsigned_leb128(out: &mut Vec<u8>, start_position: usize, value: u128) -> usize {
     write_unsigned_leb128_to(value, |i, v| write_to_vec(out, start_position+i, v))
 }