include/g++/hashtable.h

Fred Richardson frichard@bbn.com
Thu Oct 30 08:09:00 GMT 1997


I get the following warning flagged:

    include/g++/hashtable.h:190: warning: decimal integer constant is so large that it is unsigned

Here's a patch with one way of fixing it.  I don't know if this is the
correct way, though:

*** include/g++/hashtable.h	Thu Oct 30 11:05:59 1997
--- include/g++/hashtable.h.~1~	Thu Oct 30 04:01:18 1997
***************
*** 183,192 ****
  static const unsigned long __stl_prime_list[__stl_num_primes] =
  {
!   53UL,         97UL,         193UL,       389UL,       769UL,
!   1543UL,       3079UL,       6151UL,      12289UL,     24593UL,
!   49157UL,      98317UL,      196613UL,    393241UL,    786433UL,
!   1572869UL,    3145739UL,    6291469UL,   12582917UL,  25165843UL,
!   50331653UL,   100663319UL,  201326611UL, 402653189UL, 805306457UL, 
!   1610612741UL, 3221225473UL, 4294967291UL
  };
  
--- 183,192 ----
  static const unsigned long __stl_prime_list[__stl_num_primes] =
  {
!   53,         97,         193,       389,       769,
!   1543,       3079,       6151,      12289,     24593,
!   49157,      98317,      196613,    393241,    786433,
!   1572869,    3145739,    6291469,   12582917,  25165843,
!   50331653,   100663319,  201326611, 402653189, 805306457, 
!   1610612741, 3221225473, 4294967291
  };
  



More information about the Gcc-bugs mailing list