Issue #326 - Part 3: Explicitly make the Script enum a 16-bit type

This is so we can add a field to gfxShapedWord without making it bigger.
Backported from Mozilla bug 1353000.
This commit is contained in:
Job Bautista 2022-06-23 13:23:20 +08:00 committed by roytam1
commit 7c2d948210
3 changed files with 4 additions and 4 deletions

View file

@ -926,7 +926,7 @@ close DATA_TABLES;
print HEADER "namespace mozilla {\n";
print HEADER "namespace unicode {\n";
print HEADER "enum class Script {\n";
print HEADER "enum class Script : int16_t {\n";
for (my $i = 0; $i < scalar @scriptCodeToName; ++$i) {
print HEADER " ", $scriptCodeToName[$i], " = ", $i, ",\n";
}