AP_Scripting: unint32: remove integer range check

This commit is contained in:
Iampete1 2022-08-18 15:17:01 +01:00 committed by Andrew Tridgell
parent b031f88e3c
commit b399ed3044

View File

@ -20,7 +20,7 @@ uint32_t coerce_to_uint32_t(lua_State *L, int arg) {
int success; int success;
const lua_Integer v = lua_tointegerx(L, arg, &success); const lua_Integer v = lua_tointegerx(L, arg, &success);
if (success && v >= 0) { if (success) {
return static_cast<uint32_t>(v); return static_cast<uint32_t>(v);
} }
} }