Skip to content

Commit

Permalink
remove trailing spaces
Browse files Browse the repository at this point in the history
fix flake8
  • Loading branch information
fperrad committed Nov 9, 2021
1 parent 50da404 commit c5041b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hererocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1438,8 +1438,8 @@ class RioLua(Lua):
"'luaL_tolstring' may get confused with negative indices": """
lauxlib.c:
@@ -881,6 +881,7 @@ LUALIB_API lua_Integer luaL_len (lua_State *L, int idx) {
LUALIB_API const char *luaL_tolstring (lua_State *L, int idx, size_t *len) {
+ idx = lua_absindex(L,idx);
if (luaL_callmeta(L, idx, "__tostring")) { /* metafield? */
Expand All @@ -1454,7 +1454,7 @@ class RioLua(Lua):
*/
-#define luaV_shiftr(x,y) luaV_shiftl(x,-(y))
+#define luaV_shiftr(x,y) luaV_shiftl(x,intop(-, 0, y))
lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y) {
if (y < 0) { /* shift right? */
"""
Expand Down

0 comments on commit c5041b9

Please sign in to comment.