* decl.c (init_decl_processing): Fix sign of wchar_type_node.
authorJakub Jelinek <jakub@redhat.com>
Fri, 29 Dec 2000 14:43:24 +0000 (15:43 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 29 Dec 2000 14:43:24 +0000 (15:43 +0100)
From-SVN: r38537

gcc/cp/ChangeLog
gcc/cp/decl.c

index d35161ab1f739bcb35588325e7c420db9e6f177b..b8a4fdd0808bf2d16bce5f78ca72789ca1f5690b 100644 (file)
@@ -1,3 +1,7 @@
+2000-12-29  Jakub Jelinek  <jakub@redhat.com>
+
+       * decl.c (init_decl_processing): Fix sign of wchar_type_node.
+
 2000-12-29  Mark Mitchell  <mark@codesourcery.com>
 
        * class.c (pushclass): Remove #if 0'd code.
index a07f6a9955179bdb36ea08c02106e47511b6f8dd..93dd50b1cbe4c35cf690f00673c4cd90454b2faf 100644 (file)
@@ -6532,9 +6532,9 @@ init_decl_processing ()
   wchar_type_node = TREE_TYPE (IDENTIFIER_GLOBAL_VALUE (wchar_type_node));
   wchar_type_size = TYPE_PRECISION (wchar_type_node);
   if (TREE_UNSIGNED (wchar_type_node))
-    wchar_type_node = make_signed_type (wchar_type_size);
-  else
     wchar_type_node = make_unsigned_type (wchar_type_size);
+  else
+    wchar_type_node = make_signed_type (wchar_type_size);
   record_builtin_type (RID_WCHAR, "wchar_t", wchar_type_node);
 
   /* This is for wide string constants.  */