fix some bugs with -disable-assert

This commit is contained in:
Laytan Laats
2024-07-16 18:44:18 +02:00
parent 03426175ae
commit 28fac62a02
6 changed files with 15 additions and 9 deletions
+2 -1
View File
@@ -96,7 +96,8 @@ _unmarshal_value :: proc(d: Decoder, v: any, hdr: Header, allocator := context.a
ti = reflect.type_info_base(variant)
if !reflect.is_pointer_internally(variant) {
tag := any{rawptr(uintptr(v.data) + u.tag_offset), u.tag_type.id}
assert(_assign_int(tag, 1))
assigned := _assign_int(tag, 1)
assert(assigned)
}
}
}