summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-09-24 03:08:52 +0000
committerMike Buland <eichlan@xagasoft.com>2011-09-24 03:08:52 +0000
commit31ead732224022892db26ac28e505c46f91bd0e0 (patch)
tree50102beeeff039c2d4e40e815662b89e43054c72
parent9945d6c97f8b97c5647cd1b61640df73be83cad7 (diff)
downloadlibbu++-31ead732224022892db26ac28e505c46f91bd0e0.tar.gz
libbu++-31ead732224022892db26ac28e505c46f91bd0e0.tar.bz2
libbu++-31ead732224022892db26ac28e505c46f91bd0e0.tar.xz
libbu++-31ead732224022892db26ac28e505c46f91bd0e0.zip
Fixed a 32/64 bit bug in the hash tables.
-rw-r--r--src/hash.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hash.h b/src/hash.h
index 9ac0b0c..71aec73 100644
--- a/src/hash.h
+++ b/src/hash.h
@@ -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());