summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qtools/qgdict.cpp6
-rw-r--r--src/util.cpp6
2 files changed, 6 insertions, 6 deletions
diff --git a/qtools/qgdict.cpp b/qtools/qgdict.cpp
index e51b9c1..2048e2d 100644
--- a/qtools/qgdict.cpp
+++ b/qtools/qgdict.cpp
@@ -996,15 +996,15 @@ QDataStream &QGDict::read( QDataStream &s )
break;
case IntKey:
{
- Q_UINT32 k;
+ unsigned long k;
s >> k;
read( s, d );
- look_int( k, d, op_insert );
+ look_int( (long)k, d, op_insert );
}
break;
case PtrKey:
{
- Q_UINT32 k;
+ unsigned long k;
s >> k;
read( s, d );
// ### cannot insert 0 - this renders the thing
diff --git a/src/util.cpp b/src/util.cpp
index 2679b65..7c3eda2 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -5021,10 +5021,10 @@ QCString convertNameToFile(const char *name,bool allowDots,bool allowUnderscore)
{
static QDict<int> 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));
@@ -5034,7 +5034,7 @@ QCString convertNameToFile(const char *name,bool allowDots,bool allowUnderscore)
{
num = *value;
}
- result.sprintf("a%05d",num);
+ result.sprintf("a%05ld",num);
}
else // long names
{