This commit is contained in:
Andre Wagner
2026-05-15 16:45:04 -05:00
parent 0bfff6527a
commit cd21d0ab9d

View File

@@ -371,9 +371,9 @@ static void run_assembly_test(lua_State* L)
if (lua_isinteger(L, -1)) { if (lua_isinteger(L, -1)) {
TYC_TYPE type; assert(tyc_type(T, -1, &type) == T_OK); assert(type == TT_INTEGER); TYC_TYPE type; assert(tyc_type(T, -1, &type) == T_OK); assert(type == TT_INTEGER);
int32_t v; assert(tyc_tointeger(T, -1, &v) == T_OK); assert(v == lua_tointeger(L, -1)); int32_t v; assert(tyc_tointeger(T, -1, &v) == T_OK); assert(v == lua_tointeger(L, -1));
} } else if (!lua_isnil(L, -1)) {
else if (!lua_isnil(L, -1))
abort(); abort();
}
lua_pop(L, 1); lua_pop(L, 1);
// cleanup // cleanup