mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 23:07:33 +09:00
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:
parent
cd64bfb143
commit
7c2d948210
3 changed files with 4 additions and 4 deletions
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue