format for double is always "%g", do not need #defines

This commit is contained in:
Roberto Ierusalimschy
1998-12-27 18:23:22 -02:00
parent 96a7695275
commit d2de2d5eda

View File

@@ -1,5 +1,5 @@
/*
** $Id: lundump.c,v 1.4 1998/06/25 16:48:44 roberto Exp roberto $
** $Id: lundump.c,v 1.5 1998/12/15 14:59:43 roberto Exp $
** load bytecodes from files
** See Copyright Notice in lua.h
*/
@@ -200,9 +200,8 @@ static void LoadHeader (ZIO* Z)
}
doLoadNumber(f,Z);
if (f!=tf)
luaL_verror("unknown number representation in %s: "
"read " NUMBER_FMT "; expected " NUMBER_FMT "", /* LUA_NUMBER */
zname(Z),(double)f,(double)tf);
luaL_verror("unknown number representation in %s: read %g; expected %g",
zname(Z),(double)f,(double)tf); /* LUA_NUMBER */
}
static TProtoFunc* LoadChunk (ZIO* Z)