number type in Lua changed for double (by default).

This commit is contained in:
Roberto Ierusalimschy
1998-05-18 19:26:03 -03:00
parent da252eeff7
commit 054e0b888a
4 changed files with 12 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lobject.h,v 1.17 1998/03/06 16:54:42 roberto Exp $
** $Id: lobject.h,v 1.18 1998/03/09 21:49:52 roberto Exp roberto $
** Type definitions for Lua objects
** See Copyright Notice in lua.h
*/
@@ -28,10 +28,11 @@
** "real" is the type "number" of Lua
** GREP LUA_NUMBER to change that
*/
#ifndef real
#define real float
#ifndef LUA_NUM_TYPE
#define LUA_NUM_TYPE double
#endif
typedef LUA_NUM_TYPE real;
#define Byte lua_Byte /* some systems have Byte as a predefined type */
typedef unsigned char Byte; /* unsigned 8 bits */