Use %zd for size-type formatting in unicode table generator
Qt6 makes sizes qsizetype; and one of these was already sizeof()-sized. While qsizetype might not be ssize_t, it's at least no bigger, so we can safely use its format specifier, with a suitable cast. Change-Id: I433f654f6b139d74b4d5358b804b44ab1f0ada15 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
This commit is contained in:
parent
e536fc7975
commit
e3e6d58cad
@ -2295,7 +2295,7 @@ static void computeUniqueProperties()
|
||||
}
|
||||
d.propertyIndex = index;
|
||||
}
|
||||
qDebug(" %d unique unicode properties found", uniqueProperties.size());
|
||||
qDebug(" %zd unique unicode properties found", ssize_t(uniqueProperties.size()));
|
||||
}
|
||||
|
||||
struct UniqueBlock {
|
||||
@ -2592,7 +2592,7 @@ static QByteArray createSpecialCaseMap()
|
||||
out += QByteArray::number(maxN);
|
||||
out += ";\n\n\n";
|
||||
|
||||
qDebug(" memory usage: %ld bytes", specialCaseMap.size()*sizeof(unsigned short));
|
||||
qDebug(" memory usage: %zd bytes", ssize_t(specialCaseMap.size() * sizeof(unsigned short)));
|
||||
|
||||
return out;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user