diff --git a/App/lib/core/Gen/Class/ClassGenBase.vp b/App/lib/core/Gen/Class/ClassGenBase.vp index 43741c7..9f06d08 100644 --- a/App/lib/core/Gen/Class/ClassGenBase.vp +++ b/App/lib/core/Gen/Class/ClassGenBase.vp @@ -631,7 +631,7 @@ novirtual class ClassGenBase: i: int for i in range(self.MethodMetaCount): if string.strcmp(self.MethodMetaKeys + i * META_KEY_LEN, key_buf) == 0: - flags_ptr: t.CPtr = (int*)(uint64(self.MethodMetaFlags) + i * 4) + flags_ptr: int* = (int*)(uint64(self.MethodMetaFlags) + i * 4) # OR-combine flags: a getter then setter/deleter registers repeatedly, # so whole-value replacement would drop GETTER and crash downstream mlirlite. flags_ptr[0] = flags_ptr[0] | meta @@ -640,7 +640,7 @@ novirtual class ClassGenBase: if self.MethodMetaCount < META_MAX: # Slot is META_KEY_LEN=128 bytes; clamp strncpy to avoid overflowing the next slot. string.strncpy(self.MethodMetaKeys + self.MethodMetaCount * META_KEY_LEN, key_buf, META_KEY_LEN - 1) - flags_ptr2: t.CPtr = (int*)(uint64(self.MethodMetaFlags) + self.MethodMetaCount * 4) + flags_ptr2: int* = (int*)(uint64(self.MethodMetaFlags) + self.MethodMetaCount * 4) flags_ptr2[0] = meta self.MethodMetaCount += 1 stdlib.free(key_buf) @@ -657,7 +657,7 @@ novirtual class ClassGenBase: i: int for i in range(self.MethodMetaCount): if string.strcmp(self.MethodMetaKeys + i * META_KEY_LEN, key_buf) == 0: - flags_ptr: t.CPtr = (int*)(uint64(self.MethodMetaFlags) + i * 4) + flags_ptr: int* = (int*)(uint64(self.MethodMetaFlags) + i * 4) found = flags_ptr[0] break stdlib.free(key_buf)