diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lj_state.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_state.h b/src/lj_state.h index d8d6104e..4f6b0a37 100644 --- a/src/lj_state.h +++ b/src/lj_state.h | |||
| @@ -21,8 +21,8 @@ LJ_FUNC void LJ_FASTCALL lj_state_growstack1(lua_State *L); | |||
| 21 | 21 | ||
| 22 | static LJ_AINLINE void lj_state_checkstack(lua_State *L, MSize need) | 22 | static LJ_AINLINE void lj_state_checkstack(lua_State *L, MSize need) |
| 23 | { | 23 | { |
| 24 | if ((MSize)(mref(L->maxstack, char) - (char *)L->top) <= | 24 | if ((mref(L->maxstack, char) - (char *)L->top) <= |
| 25 | need*(MSize)sizeof(TValue)) | 25 | need*(ptrdiff_t)sizeof(TValue)) |
| 26 | lj_state_growstack(L, need); | 26 | lj_state_growstack(L, need); |
| 27 | } | 27 | } |
| 28 | 28 | ||
