Unicode tool: use unsigned values for the bitfields

On MSVC the values stored end up as negative.

Task-number: QTBUG-132902
Pick-to: 6.9 6.8 6.5
Change-Id: I963c57c34479041911c1364a1100d04998bdfaed
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Mårten Nordheim 2025-01-20 15:38:05 +01:00
parent f7d0366207
commit 62685375a2

View File

@ -1047,14 +1047,14 @@ 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 emoji-data.txt
uchar emojiFlags : 5;
// 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;