diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-15 18:31:15 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-10-15 18:31:15 +0200 |
commit | 7d94b18dcc41ccdcb5c8e9cff658b7c2a84b283f (patch) | |
tree | 871e17b3e56a44c6a244ef4f6776c53b8d3e51d3 /src/cancel.cpp | |
parent | ef3b67814a071b09c5959eb293f016a3095328aa (diff) | |
download | lanes-7d94b18dcc41ccdcb5c8e9cff658b7c2a84b283f.tar.gz lanes-7d94b18dcc41ccdcb5c8e9cff658b7c2a84b283f.tar.bz2 lanes-7d94b18dcc41ccdcb5c8e9cff658b7c2a84b283f.zip |
Fix incorrect int-bool conversions
Diffstat (limited to 'src/cancel.cpp')
-rw-r--r-- | src/cancel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cancel.cpp b/src/cancel.cpp index 2cd3c53..b14dca6 100644 --- a/src/cancel.cpp +++ b/src/cancel.cpp | |||
@@ -172,7 +172,7 @@ LUAG_FUNC(thread_cancel) | |||
172 | if (!lua_isboolean(L_, 2)) { | 172 | if (!lua_isboolean(L_, 2)) { |
173 | raise_luaL_error(L_, "wake_lindas argument is not a boolean"); | 173 | raise_luaL_error(L_, "wake_lindas argument is not a boolean"); |
174 | } | 174 | } |
175 | _wake_lane = lua_toboolean(L_, 2); | 175 | _wake_lane = lua_toboolean(L_, 2) ? true : false; |
176 | lua_remove(L_, 2); // argument is processed, remove it | 176 | lua_remove(L_, 2); // argument is processed, remove it |
177 | } | 177 | } |
178 | STACK_CHECK_START_REL(L_, 0); | 178 | STACK_CHECK_START_REL(L_, 0); |