From 666e8f922ffe516cb4803887a91ddd75f308a79d Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Mon, 12 Aug 2002 04:32:41 +0000 Subject: Revert commit by davidm to printf.c that initialized conv_num needlessly. To do so increases the generated code size with bcc. Eliminate duplicate define warnings in wstring.c. Fix potentially broken preprocessor comparisons. The preprocessor converts integers to maximal signed type, so inequality comparisons involving UINTMAX_MAX, ULLONG_MAX, and (if no long long) ULONG_MAX were potentially broken. --- libc/misc/wchar/wchar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/misc/wchar') diff --git a/libc/misc/wchar/wchar.c b/libc/misc/wchar/wchar.c index 676147334..4506f4f8e 100644 --- a/libc/misc/wchar/wchar.c +++ b/libc/misc/wchar/wchar.c @@ -85,7 +85,7 @@ #undef L__wchar_wcsntoutf8s #endif -#if WCHAR_MAX > 0xffffU +#if WCHAR_MAX > 0xffffUL #define UTF_8_MAX_LEN 6 #else #define UTF_8_MAX_LEN 3 -- cgit v1.2.3