diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-09-24 03:08:52 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-09-24 03:08:52 +0000 |
commit | 31ead732224022892db26ac28e505c46f91bd0e0 (patch) | |
tree | 50102beeeff039c2d4e40e815662b89e43054c72 /src | |
parent | 9945d6c97f8b97c5647cd1b61640df73be83cad7 (diff) | |
download | libbu++-31ead732224022892db26ac28e505c46f91bd0e0.tar.gz libbu++-31ead732224022892db26ac28e505c46f91bd0e0.tar.bz2 libbu++-31ead732224022892db26ac28e505c46f91bd0e0.tar.xz libbu++-31ead732224022892db26ac28e505c46f91bd0e0.zip |
Fixed a 32/64 bit bug in the hash tables.
Diffstat (limited to '')
-rw-r--r-- | src/hash.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1273,7 +1273,8 @@ namespace Bu | |||
1273 | typename c, typename d> | 1273 | typename c, typename d> |
1274 | ArchiveBase &operator<<( ArchiveBase &ar, const Hash<key,value,a,b,c,d> &h ) | 1274 | ArchiveBase &operator<<( ArchiveBase &ar, const Hash<key,value,a,b,c,d> &h ) |
1275 | { | 1275 | { |
1276 | ar << h.getSize(); | 1276 | long iSize = h.getSize(); |
1277 | ar << iSize; | ||
1277 | for( typename Hash<key,value,a,b,c,d>::const_iterator i = h.begin(); i != h.end(); i++ ) | 1278 | for( typename Hash<key,value,a,b,c,d>::const_iterator i = h.begin(); i != h.end(); i++ ) |
1278 | { | 1279 | { |
1279 | ar << (i.getKey()); | 1280 | ar << (i.getKey()); |