Explorar o código

'strtoull' and 'strtoll' type signatures

Ian Douglas Scott %!s(int64=6) %!d(string=hai) anos
pai
achega
fc0b7b9111
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/header/stdlib/mod.rs

+ 2 - 2
src/header/stdlib/mod.rs

@@ -855,7 +855,7 @@ pub unsafe extern "C" fn strtoull(
     s: *const c_char,
     endptr: *mut *mut c_char,
     base: c_int,
-) -> c_ulong {
+) -> c_ulonglong {
     strtoul(s, endptr, base)
 }
 
@@ -864,7 +864,7 @@ pub unsafe extern "C" fn strtoll(
     s: *const c_char,
     endptr: *mut *mut c_char,
     base: c_int,
-) -> c_long {
+) -> c_longlong {
     strtol(s, endptr, base)
 }