From 89602bf7476c6ecf04cc0e0125b9664dc15ebb08 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 15 Oct 2014 11:27:40 -0300 Subject: 'lua_strtonum' -> 'lua_stringtonum' --- liolib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'liolib.c') diff --git a/liolib.c b/liolib.c index a1408550..cb172af8 100644 --- a/liolib.c +++ b/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 2.130 2014/10/01 16:05:06 roberto Exp roberto $ +** $Id: liolib.c,v 2.131 2014/10/03 12:54:57 roberto Exp roberto $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -425,7 +425,7 @@ static int readdigits (RN *rn, int hex) { /* ** Read a number: first reads a valid prefix of a numeral into a buffer. -** Then it calls 'lua_strtonum' to check whether the format is correct +** Then it calls 'lua_stringtonum' to check whether the format is correct ** and to convert it to a Lua number */ static int read_number (lua_State *L, FILE *f) { @@ -452,7 +452,7 @@ static int read_number (lua_State *L, FILE *f) { ungetc(rn.c, rn.f); /* unread look-ahead char */ l_unlockfile(rn.f); rn.buff[rn.n] = '\0'; /* finish string */ - if (lua_strtonum(L, rn.buff)) /* is this a valid number? */ + if (lua_stringtonum(L, rn.buff)) /* is this a valid number? */ return 1; /* ok */ else { /* invalid format */ lua_pushnil(L); /* "result" to be removed */ -- cgit v1.2.3-55-g6feb