summaryrefslogtreecommitdiffstats
path: root/src/Bindings
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-01-18 11:02:17 +0100
committerMattes D <github@xoft.cz>2015-01-18 11:02:17 +0100
commite211aafaa45b0e4a12e9c50ee445377077ea8172 (patch)
tree649827f49829a154a4154d2368ea923f479af58c /src/Bindings
parentcorrect comment to say milliseconds (diff)
downloadcuberite-e211aafaa45b0e4a12e9c50ee445377077ea8172.tar
cuberite-e211aafaa45b0e4a12e9c50ee445377077ea8172.tar.gz
cuberite-e211aafaa45b0e4a12e9c50ee445377077ea8172.tar.bz2
cuberite-e211aafaa45b0e4a12e9c50ee445377077ea8172.tar.lz
cuberite-e211aafaa45b0e4a12e9c50ee445377077ea8172.tar.xz
cuberite-e211aafaa45b0e4a12e9c50ee445377077ea8172.tar.zst
cuberite-e211aafaa45b0e4a12e9c50ee445377077ea8172.zip
Diffstat (limited to 'src/Bindings')
-rw-r--r--src/Bindings/LuaState.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp
index 4bc9906ee..01d3ac687 100644
--- a/src/Bindings/LuaState.cpp
+++ b/src/Bindings/LuaState.cpp
@@ -843,7 +843,7 @@ void cLuaState::Push(std::chrono::milliseconds a_Value)
{
ASSERT(IsValid());
- tolua_pushnumber(m_LuaState, a_Value.count());
+ tolua_pushnumber(m_LuaState, static_cast<lua_Number>(a_Value.count()));
m_NumCurrentFunctionArgs += 1;
}