diff options
| author | Eunchong Yu <[email protected]> | 2014-08-27 15:40:09 +0900 |
|---|---|---|
| committer | Eunchong Yu <[email protected]> | 2014-08-27 15:40:09 +0900 |
| commit | 11c44d3b88d3dfb5bcc220575c2e662cbac1983f (patch) | |
| tree | a615547703bf33df568b928cf33790e94b313caa /src | |
| parent | Switch to builtin language support on travis (diff) | |
| download | rust-openssl-11c44d3b88d3dfb5bcc220575c2e662cbac1983f.tar.xz rust-openssl-11c44d3b88d3dfb5bcc220575c2e662cbac1983f.zip | |
Fix the ambiguous integer literal error
This commit fixes this:
> src/crypto/symm.rs:95:25: 95:52 error: cannot determine a type for
> this expression: cannot determine the type of this integer; add a
> suffix to specify the type explicitly [E0101]
> src/crypto/symm.rs:95 let v = if padding { 1 } else { 0 } as c_int;
Diffstat (limited to 'src')
| -rw-r--r-- | src/crypto/symm.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/symm.rs b/src/crypto/symm.rs index 8d8f651c..93286498 100644 --- a/src/crypto/symm.rs +++ b/src/crypto/symm.rs @@ -92,7 +92,7 @@ impl Crypter { pub fn pad(&self, padding: bool) { if self.blocksize > 0 { unsafe { - let v = if padding { 1 } else { 0 } as c_int; + let v = if padding { 1 as c_int } else { 0 }; EVP_CIPHER_CTX_set_padding(self.ctx, v); } } |