diff options
author | Marc Mutz <marc.mutz@qt.io> | 2023-12-11 11:04:47 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2023-12-11 17:46:32 +0000 |
commit | 7a829eaf51853e0852db28b8b8223e1a62a3db0c (patch) | |
tree | c26b6d7de66702aba2d32deeaa58c79c634a14e7 /src/corelib | |
parent | d557718d68184f6b56b17a3b5b54d1d5511a5294 (diff) |
Fix return value of qbswap(qint128)
Should be qint128, not quint128.
[ChangeLog][QtCore][QtEndian] Fixed return type of qbswap(qint128)
(was: quint128).
No tests for this exist, so no wonder it fell through. Added them.
Amends befda1accab417ce5f55cb11816e6ded51af55e3.
Pick-to: 6.7 6.6
Change-Id: Ibf87724b1d500081caca46af1c598975964e04c0
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/global/qendian.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qendian.h b/src/corelib/global/qendian.h index 60c4a7b174..8c3b5e4374 100644 --- a/src/corelib/global/qendian.h +++ b/src/corelib/global/qendian.h @@ -116,7 +116,7 @@ inline constexpr quint128 qbswap(quint128 source) return result; } -inline constexpr quint128 qbswap(qint128 source) +inline constexpr qint128 qbswap(qint128 source) { return qint128(qbswap(quint128(source))); } |