better organization for coercion functions between lua_Number and

integer types + IEEE trick to be used in most platforms, by default
This commit is contained in:
Roberto Ierusalimschy
2010-10-26 17:32:19 -02:00
parent c6b64ffe65
commit 6098e06e09
2 changed files with 71 additions and 31 deletions

4
lua.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: lua.h,v 1.274 2010/09/03 14:14:01 roberto Exp roberto $
** $Id: lua.h,v 1.275 2010/10/25 20:31:11 roberto Exp roberto $
** Lua - A Scripting Language
** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
** See Copyright Notice at the end of this file
@@ -107,7 +107,7 @@ typedef LUA_NUMBER lua_Number;
typedef LUA_INTEGER lua_Integer;
/* unsigned integer type */
typedef unsigned LUA_INT32 lua_Unsigned;
typedef LUA_UNSIGNED lua_Unsigned;