OSDN Git Service

2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
[pf3gnuchains/gcc-fork.git] / gcc / gbl-ctors.h
index 9545a85..67d5740 100644 (file)
@@ -72,9 +72,9 @@ extern void __do_global_dtors (void);
 #ifndef DO_GLOBAL_CTORS_BODY
 #define DO_GLOBAL_CTORS_BODY                                           \
 do {                                                                   \
-  unsigned long nptrs = (unsigned long) __CTOR_LIST__[0];              \
+  __SIZE_TYPE__ nptrs = (__SIZE_TYPE__) __CTOR_LIST__[0];              \
   unsigned i;                                                          \
-  if (nptrs == (unsigned long)-1)                                      \
+  if (nptrs == (__SIZE_TYPE__)-1)                                      \
     for (nptrs = 0; __CTOR_LIST__[nptrs + 1] != 0; nptrs++);           \
   for (i = nptrs; i >= 1; i--)                                         \
     __CTOR_LIST__[i] ();                                               \