diff options
| author | Alex Crichton <[email protected]> | 2015-01-09 08:07:39 -0800 |
|---|---|---|
| committer | Alex Crichton <[email protected]> | 2015-01-09 08:12:39 -0800 |
| commit | 9dfeea6ca9f8527e8be56c208e21a1a48f22f6cf (patch) | |
| tree | e26eea29b731b0c6df36847923e3a51b5bb048a4 /src/bio | |
| parent | Merge pull request #139 from vhbit/up-master (diff) | |
| download | rust-openssl-9dfeea6ca9f8527e8be56c208e21a1a48f22f6cf.tar.xz rust-openssl-9dfeea6ca9f8527e8be56c208e21a1a48f22f6cf.zip | |
Update to rust master
Diffstat (limited to 'src/bio')
| -rw-r--r-- | src/bio/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bio/mod.rs b/src/bio/mod.rs index 7172b009..a354ed86 100644 --- a/src/bio/mod.rs +++ b/src/bio/mod.rs @@ -58,7 +58,7 @@ impl MemBio { } impl Reader for MemBio { - fn read(&mut self, buf: &mut [u8]) -> IoResult<uint> { + fn read(&mut self, buf: &mut [u8]) -> IoResult<usize> { let ret = unsafe { ffi::BIO_read(self.bio, buf.as_ptr() as *mut c_void, buf.len() as c_int) @@ -81,7 +81,7 @@ impl Reader for MemBio { }; Err(err) } else { - Ok(ret as uint) + Ok(ret as usize) } } } @@ -92,7 +92,7 @@ impl Writer for MemBio { ffi::BIO_write(self.bio, buf.as_ptr() as *const c_void, buf.len() as c_int) }; - if buf.len() != ret as uint { + if buf.len() != ret as usize { Err(IoError { kind: OtherIoError, desc: "MemBio write error", |