diff options
Diffstat (limited to '')
-rw-r--r-- | src/lj_obj.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_obj.h b/src/lj_obj.h index 67e41181..e541387f 100644 --- a/src/lj_obj.h +++ b/src/lj_obj.h | |||
@@ -413,7 +413,7 @@ typedef struct GCproto { | |||
413 | #define PROTO_UV_IMMUTABLE 0x4000 /* Immutable upvalue. */ | 413 | #define PROTO_UV_IMMUTABLE 0x4000 /* Immutable upvalue. */ |
414 | 414 | ||
415 | #define proto_kgc(pt, idx) \ | 415 | #define proto_kgc(pt, idx) \ |
416 | check_exp((uintptr_t)(intptr_t)(idx) >= (uintptr_t)-(intptr_t)(pt)->sizekgc, \ | 416 | check_exp((uintptr_t)(intptr_t)(idx) >= ~(uintptr_t)(pt)->sizekgc+1u, \ |
417 | gcref(mref((pt)->k, GCRef)[(idx)])) | 417 | gcref(mref((pt)->k, GCRef)[(idx)])) |
418 | #define proto_knumtv(pt, idx) \ | 418 | #define proto_knumtv(pt, idx) \ |
419 | check_exp((uintptr_t)(idx) < (pt)->sizekn, &mref((pt)->k, TValue)[(idx)]) | 419 | check_exp((uintptr_t)(idx) < (pt)->sizekn, &mref((pt)->k, TValue)[(idx)]) |