summaryrefslogtreecommitdiffstats
path: root/src/opengl/qopengldebug.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2024-08-12 18:26:09 -0700
committerThiago Macieira <thiago.macieira@intel.com>2024-08-26 19:22:01 -0700
commit0c010cd9c792859551f6d0e34d413809cbf4ae74 (patch)
tree249848ba7f7f870eea397fd5ad508dd08785c655 /src/opengl/qopengldebug.cpp
parentb387537d3e9c35d9f112d4aa32ad71df5e5e9028 (diff)
QDataStream: allow streaming of enums backed by long and unsigned long
On Unix 64-bit platforms (LP64), compilers will use long and unsigned long as the underlying type of 64-bit enumerations without explicit type, such as: enum E { V = 0x1'0000'0000 }; User code may also explicitly choose std::int64_t or std::uint64_t, which on those platforms map to long and unsigned long, respectively. Likewise std::ptrdiff_t and std::size_t, which are the same. This means we do allow streaming of enums with explicit long and unsigned long types, such as: enum ELong : long { A, B, C }; which change sizes between platforms. [ChangeLog][QtCore][QDataStream] QDataStream now supports streaming enumerations whose underlying type is long or unsigned long (like std::int64_t, std::uint64_t, ptrdiff_t, size_t on 64-bit Unix platforms). Fixes: QTBUG-86424 Change-Id: I34ef9422a252ce3df468fffd4ba074cddea20005 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/opengl/qopengldebug.cpp')
0 files changed, 0 insertions, 0 deletions