summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qglobal.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-04-23 11:49:34 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-04-24 17:22:24 +0200
commit49609f58a58c938d74a3cb300633f914d5334dda (patch)
treedc7b440b2311cf21f177b091ddbfc78e3a440905 /src/corelib/global/qglobal.cpp
parent7d92ef63d7c2d9d017d89905a2ee0d1e9226b15c (diff)
Fixed type integers: streamline the definitions
On all the platforms we support, we require these sizes in bits: * char: 8 * short: 16 * int: 32 * long long: 64 We can get rid of the MSVC-specific type aliases (MSVC guarantees __intXX to be aliases anyhow, not extended integer types) and just use the builtin types. Also, we require C++11 and C99, so "LL" and "ULL" are the correct standard suffixes for (unsigned) long long. Remove the non-standard suffixes from the Q_(U)INT64_C macros. Change-Id: If007cd88d74064a163b5e910ca1983acd1dd1d10 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/global/qglobal.cpp')
-rw-r--r--src/corelib/global/qglobal.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/corelib/global/qglobal.cpp b/src/corelib/global/qglobal.cpp
index 3e21d41bbb..2d5e647739 100644
--- a/src/corelib/global/qglobal.cpp
+++ b/src/corelib/global/qglobal.cpp
@@ -786,8 +786,8 @@ static_assert(sizeof(qint64) == 8, "Internal error, qint64 is misdefined");
/*! \typedef qint64
\relates <QtGlobal>
- Typedef for \c{long long int} (\c __int64 on Windows). This type
- is guaranteed to be 64-bit on all platforms supported by Qt.
+ Typedef for \c{long long int}. This type is guaranteed to be 64-bit
+ on all platforms supported by Qt.
Literals of this type can be created using the Q_INT64_C() macro:
@@ -800,9 +800,8 @@ static_assert(sizeof(qint64) == 8, "Internal error, qint64 is misdefined");
\typedef quint64
\relates <QtGlobal>
- Typedef for \c{unsigned long long int} (\c{unsigned __int64} on
- Windows). This type is guaranteed to be 64-bit on all platforms
- supported by Qt.
+ Typedef for \c{unsigned long long int}. This type is guaranteed to
+ be 64-bit on all platforms supported by Qt.
Literals of this type can be created using the Q_UINT64_C()
macro: