From 5ca2709ba055901ba9d658aa2ca51e0682dfdb30 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 3 Dec 1998 13:45:15 -0200 Subject: small warnings --- llex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llex.c') diff --git a/llex.c b/llex.c index e5570723..3c3cf430 100644 --- a/llex.c +++ b/llex.c @@ -1,5 +1,5 @@ /* -** $Id: llex.c,v 1.23 1998/07/06 22:04:58 roberto Exp roberto $ +** $Id: llex.c,v 1.24 1998/07/24 18:02:38 roberto Exp roberto $ ** Lexical Analizer ** See Copyright Notice in lua.h */ @@ -234,7 +234,7 @@ static void inclinenumber (LexState *LS) static int read_long_string (LexState *LS) { int cont = 0; - while (1) { + for (;;) { switch (LS->current) { case EOZ: luaX_error(LS, "unfinished long string"); @@ -272,7 +272,7 @@ static int read_long_string (LexState *LS) int luaX_lex (LexState *LS) { double a; luaL_resetbuffer(); - while (1) { + for (;;) { switch (LS->current) { case ' ': case '\t': case '\r': /* CR: to avoid problems with DOS */ -- cgit v1.2.3-55-g6feb