Use static array for table

This commit is contained in:
Dennis Korpel 2024-01-06 17:43:49 +01:00
parent bd8b943fa2
commit bdbce3b67d
3 changed files with 3 additions and 2 deletions

View file

@ -901,7 +901,7 @@ void writeCaseFolding(File sink)
writeln("}");
writeln("@property FCE fullCaseTable(size_t index) nothrow @nogc @safe pure");
writeln("{");
write("static immutable ulong[] t = [");
writef("static immutable ulong[%d] t = [", fullTable.length);
int[4] maxS = 0;
foreach (i, v; fullTable)
{