Page MenuHomeFreeBSD

D41814.diff
No OneTemporary

D41814.diff

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

Mime Type
text/plain
Expires
Sun, Jan 12, 4:51 AM (20 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15761364
Default Alt Text
D41814.diff (1 KB)

Event Timeline