]> granicus.if.org Git - python/commitdiff
Correct test whether wchar_t is unsigned. Fixed crash
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 11 Apr 2006 07:15:30 +0000 (07:15 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 11 Apr 2006 07:15:30 +0000 (07:15 +0000)
in #1454485.

configure
configure.in

index f8183f2c6c487d5e71bcfcb01fb6b0875bff9072..6f2d0952c2d8f7d9891eee0c034ed16db0591c86 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 43615 .
+# From configure.in Revision: 43748 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59 for python 2.5.
 #
@@ -20019,7 +20019,8 @@ cat >>conftest.$ac_ext <<_ACEOF
   #include <wchar.h>
   int main()
   {
-        exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0);
+       /* Success: exit code 0 */
+        exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
   }
 
 _ACEOF
index 612d2fa91b3bb2d08a974de402091d54f5f88c1c..a043ce59d181efced28f03c0a30fcefd2f601d29 100644 (file)
@@ -2792,7 +2792,8 @@ then
   #include <wchar.h>
   int main()
   {
-        exit((((wchar_t) -1) < ((wchar_t) 0)) ? 1 : 0);
+       /* Success: exit code 0 */
+        exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
   }
   ],
   ac_cv_wchar_t_signed=yes,