From e13d424ced3d0ad2a1c421edbec65628e67f2cd2 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 5 Nov 2018 17:26:18 -0300 Subject: [PATCH] lua: All functions that receive an integer, can receive a number too (with math.floor() conversion) --- third_party/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt index 6882ceb93..2bd59862d 100644 --- a/third_party/CMakeLists.txt +++ b/third_party/CMakeLists.txt @@ -162,6 +162,7 @@ if(ENABLE_SCRIPTING) lua/lstrlib.c lua/ltablib.c lua/lutf8lib.c) + target_compile_definitions(lua PUBLIC LUA_FLOORN2I=1) target_include_directories(lua PUBLIC lua) target_include_directories(lauxlib PUBLIC lua) target_include_directories(lualib PUBLIC lua)