fix(lua/numerics): errors when cross-compiling for Windows
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
76150620c3
commit
e7d508043b
1 changed files with 2 additions and 2 deletions
|
@ -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<long int>(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<long int>(luaL_checkinteger(L, 1));
|
||||
return arg;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue