only tables need `lua_number2int'

This commit is contained in:
Roberto Ierusalimschy
2002-07-01 16:31:10 -03:00
parent 76a73cb2ee
commit 68ee518e81
2 changed files with 11 additions and 11 deletions

8
lua.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: lua.h,v 1.143 2002/06/25 19:18:49 roberto Exp roberto $
** $Id: lua.h,v 1.144 2002/06/26 19:28:44 roberto Exp roberto $
** Lua - An Extensible Extension Language
** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil
** http://www.lua.org mailto:info@lua.org
@@ -301,12 +301,6 @@ LUA_API int lua_pushupvalues (lua_State *L);
#define LUA_NUMBER_FMT "%.16g"
#endif
/* function to convert a lua_Number to int (with any rounding method) */
#ifndef lua_number2int
#define lua_number2int(i,n) ((i)=(int)(n))
#endif
/* }====================================================================== */