From cc8d110f834d112a230024122fddfcc6e0a67759 Mon Sep 17 00:00:00 2001 From: Jose Colon Rodriguez Date: Tue, 2 Apr 2024 13:22:37 -0400 Subject: NormData init now takes pointer to uninitialized Self to avoid stack copy issues. --- src/unicode_tests.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/unicode_tests.zig') diff --git a/src/unicode_tests.zig b/src/unicode_tests.zig index 5442f63..448ce41 100644 --- a/src/unicode_tests.zig +++ b/src/unicode_tests.zig @@ -17,8 +17,9 @@ test "Unicode normalization tests" { defer arena.deinit(); var allocator = arena.allocator(); - const data = try Normalize.NormData.init(allocator); - const n = Normalize{ .norm_data = &data }; + var norm_data: Normalize.NormData = undefined; + try Normalize.NormData.init(&norm_data, allocator); + const n = Normalize{ .norm_data = &norm_data }; var file = try fs.cwd().openFile("data/unicode/NormalizationTest.txt", .{}); defer file.close(); -- cgit v1.2.3