Skip to content
Snippets Groups Projects
Commit cd40d25c authored by Steven Fackler's avatar Steven Fackler
Browse files

Merge pull request #35 from Kroisse/master

Fix the ambiguous integer literal error
parents 07f12370 11c44d3b
Branches
Tags
No related merge requests found
...@@ -92,7 +92,7 @@ impl Crypter { ...@@ -92,7 +92,7 @@ impl Crypter {
pub fn pad(&self, padding: bool) { pub fn pad(&self, padding: bool) {
if self.blocksize > 0 { if self.blocksize > 0 {
unsafe { 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); EVP_CIPHER_CTX_set_padding(self.ctx, v);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment