fix inttypes/wcstoumax os-test unit test

This commit is contained in:
sourceturner
2026-06-06 16:02:01 +02:00
parent 7df28779b9
commit 61eb978f8e
3 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -80,7 +80,7 @@ pub unsafe extern "C" fn wcstoimax(
base: c_int,
) -> intmax_t {
skipws!(ptr);
let result = strto_impl!(intmax_t, ptr, base);
let result = wcsto_impl!(intmax_t, ptr, base);
if !end.is_null() {
unsafe { *end = ptr.cast_mut() };
}
@@ -95,7 +95,7 @@ pub unsafe extern "C" fn wcstoumax(
base: c_int,
) -> uintmax_t {
skipws!(ptr);
let result = strtou_impl!(uintmax_t, ptr, base);
let result = wcsto_impl!(uintmax_t, ptr, base);
if !end.is_null() {
unsafe { *end = ptr.cast_mut() };
}
+4 -4
View File
@@ -855,7 +855,7 @@ pub unsafe extern "C" fn wcstol(
base: c_int,
) -> c_long {
skipws!(ptr);
let result = strto_impl!(c_long, ptr, base);
let result = wcsto_impl!(c_long, ptr, base);
if !end.is_null() {
unsafe { *end = ptr.cast_mut() };
}
@@ -870,7 +870,7 @@ pub unsafe extern "C" fn wcstoll(
base: c_int,
) -> c_longlong {
skipws!(ptr);
let result = strto_impl!(c_longlong, ptr, base);
let result = wcsto_impl!(c_longlong, ptr, base);
if !end.is_null() {
unsafe { *end = ptr.cast_mut() };
}
@@ -885,7 +885,7 @@ pub unsafe extern "C" fn wcstoul(
base: c_int,
) -> c_ulong {
skipws!(ptr);
let result = strtou_impl!(c_ulong, ptr, base);
let result = wcsto_impl!(c_ulong, ptr, base);
if !end.is_null() {
unsafe { *end = ptr.cast_mut() };
}
@@ -900,7 +900,7 @@ pub unsafe extern "C" fn wcstoull(
base: c_int,
) -> c_ulonglong {
skipws!(ptr);
let result = strtou_impl!(c_ulonglong, ptr, base);
let result = wcsto_impl!(c_ulonglong, ptr, base);
if !end.is_null() {
unsafe { *end = ptr.cast_mut() };
}