pofParser: ARRAY2INT32: must be casted to uin32_t not uint16_t

This commit is contained in:
Gwenhael Goavec-Merou 2026-04-01 10:32:38 +02:00
parent 63c97410b6
commit ff9e10085a
1 changed files with 4 additions and 4 deletions

View File

@ -18,10 +18,10 @@
(static_cast<uint16_t>(_array_[1] & 0x00ff) << 8))
#define ARRAY2INT32(_array_) ( \
(static_cast<uint16_t>(_array_[0] & 0x00ff) << 0) | \
(static_cast<uint16_t>(_array_[1] & 0x00ff) << 8) | \
(static_cast<uint16_t>(_array_[2] & 0x00ff) << 16) | \
(static_cast<uint16_t>(_array_[3] & 0x00ff) << 24))
(static_cast<uint32_t>(_array_[0] & 0x00ff) << 0) | \
(static_cast<uint32_t>(_array_[1] & 0x00ff) << 8) | \
(static_cast<uint32_t>(_array_[2] & 0x00ff) << 16) | \
(static_cast<uint32_t>(_array_[3] & 0x00ff) << 24))
/*!
* \file pofParser.hpp