Make long 32-bits on 32-bit systems

This commit is contained in:
Jeremy Soller
2022-12-01 18:33:00 -07:00
parent da4d277f12
commit 9e0c53f222
13 changed files with 63 additions and 34 deletions
+18 -2
View File
@@ -1099,7 +1099,15 @@ pub unsafe extern "C" fn strtoull(
endptr: *mut *mut c_char,
base: c_int,
) -> c_ulonglong {
strtoul(s, endptr, base)
strto_impl!(
c_ulonglong,
false,
c_ulonglong::max_value(),
c_ulonglong::min_value(),
s,
endptr,
base
)
}
#[no_mangle]
@@ -1108,7 +1116,15 @@ pub unsafe extern "C" fn strtoll(
endptr: *mut *mut c_char,
base: c_int,
) -> c_longlong {
strtol(s, endptr, base)
strto_impl!(
c_longlong,
true,
c_longlong::max_value(),
c_longlong::min_value(),
s,
endptr,
base
)
}
#[no_mangle]