summaryrefslogtreecommitdiff
path: root/src/zisp/value
diff options
context:
space:
mode:
authorTaylan Kammer <taylan.kammer@gmail.com>2026-06-22 19:05:48 +0200
committerTaylan Kammer <taylan.kammer@gmail.com>2026-06-22 19:05:48 +0200
commit8308e303a88779be0d0a6249d2d79ca56eb05ed0 (patch)
tree524e5fb474ce890fbf1e9b5311a7e7cdba33b0de /src/zisp/value
parent476632d9559b1e3bacbd226df336116cac8544ea (diff)
Fix tests etc.
Diffstat (limited to 'src/zisp/value')
-rw-r--r--src/zisp/value/ptr.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zisp/value/ptr.zig b/src/zisp/value/ptr.zig
index 3a6995b..8a3ca18 100644
--- a/src/zisp/value/ptr.zig
+++ b/src/zisp/value/ptr.zig
@@ -27,7 +27,7 @@ pub fn pack(comptime ht: HeapType, ptr: ht.PtrType()) Value {
return .{ .ptr = .{ .index = index, .htype = ht } };
}
-pub fn unpack(v: Value) struct { Zptr, HeapType } {
+pub fn unpack(v: Value) struct { HeapType, ?Zptr } {
assert(v);
return v.getPtrAny() orelse unreachable;
}