Fix assertion.

This commit is contained in:
Mike Pall 2012-10-11 21:40:46 +02:00
parent 425f67c7d6
commit fd292c9f26

View File

@ -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);
}