From e7d508043b1d87505f39d4559c18451eeb0c5b3d Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Tue, 5 Nov 2013 13:35:34 -0800 Subject: [PATCH] fix(lua/numerics): errors when cross-compiling for Windows Signed-off-by: Leonardo de Moura --- src/bindings/lua/numerics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bindings/lua/numerics.cpp b/src/bindings/lua/numerics.cpp index 56fb6977d..a551ad153 100644 --- a/src/bindings/lua/numerics.cpp +++ b/src/bindings/lua/numerics.cpp @@ -25,7 +25,7 @@ static mpz const & to_mpz(lua_State * L) { arg = mpz(str); return arg; } else { - arg = luaL_checkinteger(L, 1); + arg = static_cast(luaL_checkinteger(L, 1)); return arg; } } @@ -137,7 +137,7 @@ static mpq const & to_mpq(lua_State * L) { arg = mpq(str); return arg; } else { - arg = luaL_checkinteger(L, 1); + arg = static_cast(luaL_checkinteger(L, 1)); return arg; } }