Skip to content

Commit 1d7b1f4

Browse files
committed
removed unnecessary @ptrToIn
1 parent c19939a commit 1d7b1f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.wasm

0 Bytes
Binary file not shown.

index.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ pub fn panic(message: []const u8, _: ?*builtin.StackTrace, _: ?usize) noreturn {
5858
env.throwError(message);
5959
}
6060

61-
export fn allocUint8(length: u32) u32 {
61+
export fn allocUint8(length: u32) [*]const u8 {
6262
const slice = allocator.alloc(u8, length) catch
6363
@panic("failed to allocate memory");
64-
return @ptrToInt(slice.ptr);
64+
return slice.ptr;
6565
}
6666

6767
export fn free(pointer: [*:0]u8) void {

0 commit comments

Comments
 (0)