--- qtools/qgdict.cpp +++ qtools/qgdict.cpp @@ -996,7 +996,7 @@ break; case IntKey: { - Q_UINT32 k; + Q_UINT64 k; s >> k; read( s, d ); look_int( k, d, op_insert ); @@ -1004,7 +1004,7 @@ break; case PtrKey: { - Q_UINT32 k; + Q_UINT64 k; s >> k; read( s, d ); // ### cannot insert 0 - this renders the thing --- src/util.cpp +++ src/util.cpp @@ -4539,10 +4539,10 @@ { static QDict usedNames(10007); usedNames.setAutoDelete(TRUE); - static int count=1; + static long int count=1; int *value=usedNames.find(name); - int num; + long int num; if (value==0) { usedNames.insert(name,new int(count)); @@ -4552,7 +4552,7 @@ { num = *value; } - result.sprintf("a%05d",num); + result.sprintf("a%05ld",num); } else // long names {