Skip to content

Commit 02b8dfe

Browse files
ngoldbaumdavidhewitt
authored andcommitted
fix compiler warning on 32 bit platforms
1 parent a76ce14 commit 02b8dfe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/string-sum/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ unsafe fn parse_arg_as_i32(obj: *mut PyObject, n_arg: usize) -> Option<i32> {
5252
let mut overflow = 0;
5353
let i_long: c_long = PyLong_AsLongAndOverflow(obj, &mut overflow);
5454

55+
#[allow(irrefutable_let_patterns)] // some platforms have c_long equal to i32
5556
if overflow != 0 {
5657
raise_overflowerror(obj);
5758
None

0 commit comments

Comments
 (0)