Commit ed71e586 by Andrew Pinski Committed by Andrew Pinski

array11.C: Change unsigned to __SIZE_TYPE__ so that it will not complain on LP64 targets.


	* g++.dg/init/array11.C: Change unsigned to __SIZE_TYPE__
	so that it will not complain on LP64 targets.

From-SVN: r71575
parent 68c78847
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> 2003-09-19 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
PR c++/495 PR c++/495
......
...@@ -8,9 +8,12 @@ ...@@ -8,9 +8,12 @@
constant value when it is not. */ constant value when it is not. */
int x; int x;
typedef __SIZE_TYPE__ size_t;
struct gdt struct gdt
{ {
unsigned a,b,c,d,e,f; size_t a,b,c,d,e,f;
}; };
void f() void f()
{ {
...@@ -18,7 +21,7 @@ struct gdt gdt_table[2]= ...@@ -18,7 +21,7 @@ struct gdt gdt_table[2]=
{ {
{ {
0, 0,
( (((unsigned)(&x))<<(24))&(-1<<(8)) ), ( (((size_t)(&x))<<(24))&(-1<<(8)) ),
}, },
}; };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment