diff options
| author | Li Jin <dragon-fly@qq.com> | 2022-09-30 11:29:41 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2022-09-30 11:29:41 +0800 |
| commit | 5aa41b436b3fdf29f5a0046c68cb60b16fa09eb2 (patch) | |
| tree | 5c5c0ecdab0d19544652bc05b70d8131e1645337 /src/3rdParty/lua/lvm.c | |
| parent | a6b6753fda9745f316f3236462b74794b35b85c9 (diff) | |
| download | yuescript-5aa41b436b3fdf29f5a0046c68cb60b16fa09eb2.tar.gz yuescript-5aa41b436b3fdf29f5a0046c68cb60b16fa09eb2.tar.bz2 yuescript-5aa41b436b3fdf29f5a0046c68cb60b16fa09eb2.zip | |
fix issue #81, refactor continue with gotos.
Diffstat (limited to '')
| -rw-r--r-- | src/3rdParty/lua/lvm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/3rdParty/lua/lvm.c b/src/3rdParty/lua/lvm.c index 614df05..73a19ba 100644 --- a/src/3rdParty/lua/lvm.c +++ b/src/3rdParty/lua/lvm.c | |||
| @@ -765,12 +765,10 @@ lua_Number luaV_modf (lua_State *L, lua_Number m, lua_Number n) { | |||
| 765 | /* number of bits in an integer */ | 765 | /* number of bits in an integer */ |
| 766 | #define NBITS cast_int(sizeof(lua_Integer) * CHAR_BIT) | 766 | #define NBITS cast_int(sizeof(lua_Integer) * CHAR_BIT) |
| 767 | 767 | ||
| 768 | |||
| 768 | /* | 769 | /* |
| 769 | ** Shift left operation. (Shift right just negates 'y'.) | 770 | ** Shift left operation. (Shift right just negates 'y'.) |
| 770 | */ | 771 | */ |
| 771 | #define luaV_shiftr(x,y) luaV_shiftl(x,intop(-, 0, y)) | ||
| 772 | |||
| 773 | |||
| 774 | lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y) { | 772 | lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y) { |
| 775 | if (y < 0) { /* shift right? */ | 773 | if (y < 0) { /* shift right? */ |
| 776 | if (y <= -NBITS) return 0; | 774 | if (y <= -NBITS) return 0; |
