diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-07-31 16:03:21 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-08-04 13:28:34 +0200 |
commit | e3e6d58cadefbe55160535679d8b6c93c72e8e3e (patch) | |
tree | 5765ed681879c3d9ccfb9ff4ef139e3eab4665da /util/unicode/main.cpp | |
parent | e536fc7975a33d9eec89ec7b9705cebd21761934 (diff) |
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>
Diffstat (limited to 'util/unicode/main.cpp')
-rw-r--r-- | util/unicode/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/unicode/main.cpp b/util/unicode/main.cpp index 98580fcb77..34274053d9 100644 --- a/util/unicode/main.cpp +++ b/util/unicode/main.cpp @@ -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; } |