diff options
author | Mike Pall <mike> | 2022-12-22 00:52:04 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2022-12-22 00:52:04 +0100 |
commit | a04480e311f93d3ceb2f92549cad3fffa38250ef (patch) | |
tree | a9e2102ac93d2e358d6fd8735cdb8949409f746d /src/lj_obj.h | |
parent | 8625eee71f16a3a780ec92bc303c17456efc7fb3 (diff) | |
parent | 8a5e398c52c7f8ca3e1a0e574cc2ba38224b759b (diff) | |
download | luajit-a04480e311f93d3ceb2f92549cad3fffa38250ef.tar.gz luajit-a04480e311f93d3ceb2f92549cad3fffa38250ef.tar.bz2 luajit-a04480e311f93d3ceb2f92549cad3fffa38250ef.zip |
Merge branch 'master' into v2.1
Diffstat (limited to 'src/lj_obj.h')
-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)]) |