From 256e21f226aafd5bc7c469e7e7a196fbe54c0eca Mon Sep 17 00:00:00 2001 From: Caleb Denio Date: Thu, 5 Jun 2025 14:00:39 -0400 Subject: [PATCH] a lil cleaner --- src/wasm.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wasm.zig b/src/wasm.zig index e700532..b9658c7 100644 --- a/src/wasm.zig +++ b/src/wasm.zig @@ -6,8 +6,7 @@ const allocator = std.heap.wasm_allocator; export fn decodeStringWasm(str: *const [65:0]u8) usize { if (imb.decodeString(str)) |v| { const ptr = allocator.create([31]u8) catch unreachable; - const result = v.tracking_code ++ v.routing_code; - @memcpy(ptr, &result); + ptr.* = v.tracking_code ++ v.routing_code; return @intFromPtr(ptr); } else |e| switch (e) { error.InvalidCharacter => return 0,