diff options
| author | 2024-02-28 19:23:23 -0400 | |
|---|---|---|
| committer | 2024-02-28 19:23:23 -0400 | |
| commit | 7cad24f76a72f534084de64153f768699170cd05 (patch) | |
| tree | 0a9eb3b4609a246046952c379ea5e92540623ab7 /src/CompatData.zig | |
| parent | General Category with GenCatData (diff) | |
| download | zg-7cad24f76a72f534084de64153f768699170cd05.tar.gz zg-7cad24f76a72f534084de64153f768699170cd05.tar.xz zg-7cad24f76a72f534084de64153f768699170cd05.zip | |
Using slices for decompositions in Normalizer
Diffstat (limited to 'src/CompatData.zig')
| -rw-r--r-- | src/CompatData.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CompatData.zig b/src/CompatData.zig index a1f5de6..fd7f678 100644 --- a/src/CompatData.zig +++ b/src/CompatData.zig | |||
| @@ -22,7 +22,7 @@ pub fn init(allocator: mem.Allocator) !Self { | |||
| 22 | .nfkd = try allocator.alloc([]u21, 0x110000), | 22 | .nfkd = try allocator.alloc([]u21, 0x110000), |
| 23 | }; | 23 | }; |
| 24 | 24 | ||
| 25 | for (0..0x110000) |i| self.nfkd[i] = &.{}; | 25 | @memset(self.nfkd, &.{}); |
| 26 | 26 | ||
| 27 | while (true) { | 27 | while (true) { |
| 28 | const len: u8 = try reader.readInt(u8, endian); | 28 | const len: u8 = try reader.readInt(u8, endian); |