mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix assertion.
This commit is contained in:
parent
425f67c7d6
commit
fd292c9f26
@ -492,7 +492,7 @@ LJFOLD(STRREF KGC KINT)
|
||||
LJFOLDF(kfold_strref)
|
||||
{
|
||||
GCstr *str = ir_kstr(fleft);
|
||||
lua_assert((MSize)fright->i < str->len);
|
||||
lua_assert((MSize)fright->i <= str->len);
|
||||
return lj_ir_kkptr(J, (char *)strdata(str) + fright->i);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user