Permalink
Browse files

* Minor fix for time.fromnumber().

  • Loading branch information...
1 parent dd24c19 commit efb026340efee8ebb950cc4be30cb4b5c5257bcd @bobbens committed May 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/nlua_time.c
View
@@ -428,7 +428,7 @@ static int time_tonumber( lua_State *L )
static int time_fromnumber( lua_State *L )
{
LuaTime lt;
- lt.t = luaL_checklong(L,1);
+ lt.t = (ntime_t) luaL_checknumber(L,1);
lua_pushtime( L, lt );
return 1;
}

0 comments on commit efb0263

Please sign in to comment.