diff options
author | drepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-04-07 18:39:16 +0000 |
---|---|---|
committer | drepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-04-07 18:39:16 +0000 |
commit | 69298f64936e36c3df38abb2301aff05b65be273 (patch) | |
tree | 0f72762bc1fa821a61137e02c7c1e6b2d077bc8b /libstdc++ | |
parent | 881d3b0a2d9fb12915358aeedcfd7a145f02a609 (diff) | |
download | gcc-69298f64936e36c3df38abb2301aff05b65be273.tar.gz |
(__stl_prime_list): Mark last two numbers as
unsigned long since they are otherwise too large for long int on
32bit machines.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19034 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++')
-rw-r--r-- | libstdc++/stl/ChangeLog | 6 | ||||
-rw-r--r-- | libstdc++/stl/stl_hashtable.h | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/libstdc++/stl/ChangeLog b/libstdc++/stl/ChangeLog index 5605d7c323e..4afbb7105d0 100644 --- a/libstdc++/stl/ChangeLog +++ b/libstdc++/stl/ChangeLog @@ -1,3 +1,9 @@ +1998-04-07 18:32 Ulrich Drepper <drepper@cygnus.com> + + * stl_hashtable.h (__stl_prime_list): Mark last two numbers as + unsigned long since they are otherwise too large for long int on + 32bit machines. + Fri Feb 20 16:15:05 1998 H.J. Lu (hjl@gnu.org) Jason Merrill <jason@yorick.cygnus.com> diff --git a/libstdc++/stl/stl_hashtable.h b/libstdc++/stl/stl_hashtable.h index fbe974dd56c..e5b63b271de 100644 --- a/libstdc++/stl/stl_hashtable.h +++ b/libstdc++/stl/stl_hashtable.h @@ -142,12 +142,12 @@ struct __hashtable_const_iterator { static const int __stl_num_primes = 28; 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 + 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, 3221225473ul, 4294967291ul }; inline unsigned long __stl_next_prime(unsigned long n) |