Unicode tool: use unsigned values for the bitfields

On MSVC the values stored end up as negative.

Conflicts resolved in cherry-pick:
  - The emoji-data code didn't exist in this branch

Task-number: QTBUG-132902
Pick-to: 6.5
Change-Id: I963c57c34479041911c1364a1100d04998bdfaed
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 62685375a2d71fa34015faac76f03e709e4217c7)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 09b06a740dd5e2ea08b49f76a2c384e6eb6fa6c6)
bb10
Mårten Nordheim 2025-01-20 15:38:05 +01:00
parent 45cef5b85b
commit 5d78dd12ba
1 changed files with 4 additions and 4 deletions

View File

@ -1000,12 +1000,12 @@ struct PropertyFlags {
}
// from UnicodeData.txt
uchar combiningClass : 8;
QChar::Category category : 5;
QChar::Direction direction : 5;
uchar category : 5; // QChar::Category, but unsigned
uchar direction : 5; // QChar::Direction, but unsigned
// from ArabicShaping.txt
QChar::JoiningType joining : 3;
uchar joining : 3; // QChar::JoiningType, but unsigned
// from DerivedAge.txt
QChar::UnicodeVersion age : 5;
uchar age : 5; // QChar::UnicodeVersion, but unsigned
// From EastAsianWidth.txt
EastAsianWidth eastAsianWidth = EastAsianWidth::N;
int digitValue = -1;