aboutsummaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-02-05 15:15:33 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-02-05 15:15:33 -0200
commitc8d6cb01365780367f949a94b29bb3f043744c0e (patch)
tree7a70fb480a12b656771efcea82ea07ac9c863d3a /lobject.c
parent0edcdf49c00b70986f3efc12ceae912db2361d67 (diff)
downloadlua-c8d6cb01365780367f949a94b29bb3f043744c0e.tar.gz
lua-c8d6cb01365780367f949a94b29bb3f043744c0e.tar.bz2
lua-c8d6cb01365780367f949a94b29bb3f043744c0e.zip
macros 'luai_num*' (for float arithmetic operations) moved to
llimits.h.
Diffstat (limited to 'lobject.c')
-rw-r--r--lobject.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lobject.c b/lobject.c
index a3cc619f..60d1f3d9 100644
--- a/lobject.c
+++ b/lobject.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lobject.c,v 2.100 2014/11/21 12:15:57 roberto Exp roberto $ 2** $Id: lobject.c,v 2.101 2014/12/26 14:43:45 roberto Exp roberto $
3** Some generic functions over Lua objects 3** Some generic functions over Lua objects
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -10,6 +10,7 @@
10#include "lprefix.h" 10#include "lprefix.h"
11 11
12 12
13#include <math.h>
13#include <stdarg.h> 14#include <stdarg.h>
14#include <stdio.h> 15#include <stdio.h>
15#include <stdlib.h> 16#include <stdlib.h>
@@ -174,8 +175,6 @@ static int isneg (const char **s) {
174*/ 175*/
175#if !defined(lua_strx2number) 176#if !defined(lua_strx2number)
176 177
177#include <math.h>
178
179/* maximum number of significant digits to read (to avoid overflows 178/* maximum number of significant digits to read (to avoid overflows
180 even with single floats) */ 179 even with single floats) */
181#define MAXSIGDIG 30 180#define MAXSIGDIG 30