OSDN Git Service

* g++.dg/init/array11.C: Change unsigned to __SIZE_TYPE__
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 19 Sep 2003 14:46:25 +0000 (14:46 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 19 Sep 2003 14:46:25 +0000 (14:46 +0000)
so that it will not complain on LP64 targets.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71575 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/array11.C

index 77a2c4b..14d7e39 100644 (file)
@@ -1,3 +1,7 @@
+2003-09-19  Andrew Pinski  <pinskia@physics.uc.edu>
+       * g++.dg/init/array11.C: Change unsigned to __SIZE_TYPE__
+       so that it will not complain on LP64 targets.
+
 2003-09-19  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
 
        PR c++/495
index e362b91..e52effe 100644 (file)
@@ -8,9 +8,12 @@
    constant value when it is not.  */
 
 int x;
+
+typedef __SIZE_TYPE__ size_t;
+
 struct gdt
 {
-unsigned a,b,c,d,e,f;
+size_t a,b,c,d,e,f;
 };
 void f()
 {
@@ -18,7 +21,7 @@ struct gdt gdt_table[2]=
 {
     {
                0,
-               ( (((unsigned)(&x))<<(24))&(-1<<(8)) ),
+               ( (((size_t)(&x))<<(24))&(-1<<(8)) ),
     },
 };
 }