Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143078395
D41814.id127230.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D41814.id127230.diff
View Options
diff --git a/lib/libc/tests/stdio/snprintf_test.c b/lib/libc/tests/stdio/snprintf_test.c
--- a/lib/libc/tests/stdio/snprintf_test.c
+++ b/lib/libc/tests/stdio/snprintf_test.c
@@ -131,8 +131,8 @@
ATF_TC_BODY(snprintf_wN, tc)
{
SNPRINTF_TEST("0", "%w8d", (int8_t)0);
- SNPRINTF_TEST("-128", "%w8d", (int8_t)CHAR_MIN);
- SNPRINTF_TEST("127", "%w8d", (int8_t)CHAR_MAX);
+ SNPRINTF_TEST("-128", "%w8d", (int8_t)SCHAR_MIN);
+ SNPRINTF_TEST("127", "%w8d", (int8_t)SCHAR_MAX);
SNPRINTF_TEST("0", "%w8u", (uint8_t)0);
SNPRINTF_TEST("255", "%w8u", (uint8_t)UCHAR_MAX);
diff --git a/lib/libc/tests/stdio/swprintf_test.c b/lib/libc/tests/stdio/swprintf_test.c
--- a/lib/libc/tests/stdio/swprintf_test.c
+++ b/lib/libc/tests/stdio/swprintf_test.c
@@ -132,8 +132,8 @@
ATF_TC_BODY(swprintf_wN, tc)
{
SWPRINTF_TEST("0", "%w8d", (int8_t)0);
- SWPRINTF_TEST("-128", "%w8d", (int8_t)CHAR_MIN);
- SWPRINTF_TEST("127", "%w8d", (int8_t)CHAR_MAX);
+ SWPRINTF_TEST("-128", "%w8d", (int8_t)SCHAR_MIN);
+ SWPRINTF_TEST("127", "%w8d", (int8_t)SCHAR_MAX);
SWPRINTF_TEST("0", "%w8u", (uint8_t)0);
SWPRINTF_TEST("255", "%w8u", (uint8_t)UCHAR_MAX);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 26, 5:34 PM (19 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27950891
Default Alt Text
D41814.id127230.diff (1 KB)
Attached To
Mode
D41814: libc: Don't assume signed char.
Attached
Detach File
Event Timeline
Log In to Comment