diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-12-27 18:23:22 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-12-27 18:23:22 -0200 |
| commit | d2de2d5eda5779832a6e6ce4de1f1d8aa4f01047 (patch) | |
| tree | 8d5466252925e62f3218d0751e98d950a1ed7b0c | |
| parent | 96a769527511196e6ae5028a68bb0e6275cfa305 (diff) | |
| download | lua-d2de2d5eda5779832a6e6ce4de1f1d8aa4f01047.tar.gz lua-d2de2d5eda5779832a6e6ce4de1f1d8aa4f01047.tar.bz2 lua-d2de2d5eda5779832a6e6ce4de1f1d8aa4f01047.zip | |
format for double is always "%g", do not need #defines
| -rw-r--r-- | lundump.c | 7 |
1 files changed, 3 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lundump.c,v 1.4 1998/06/25 16:48:44 roberto Exp roberto $ | 2 | ** $Id: lundump.c,v 1.5 1998/12/15 14:59:43 roberto Exp $ |
| 3 | ** load bytecodes from files | 3 | ** load bytecodes from files |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -200,9 +200,8 @@ static void LoadHeader (ZIO* Z) | |||
| 200 | } | 200 | } |
| 201 | doLoadNumber(f,Z); | 201 | doLoadNumber(f,Z); |
| 202 | if (f!=tf) | 202 | if (f!=tf) |
| 203 | luaL_verror("unknown number representation in %s: " | 203 | luaL_verror("unknown number representation in %s: read %g; expected %g", |
| 204 | "read " NUMBER_FMT "; expected " NUMBER_FMT "", /* LUA_NUMBER */ | 204 | zname(Z),(double)f,(double)tf); /* LUA_NUMBER */ |
| 205 | zname(Z),(double)f,(double)tf); | ||
| 206 | } | 205 | } |
| 207 | 206 | ||
| 208 | static TProtoFunc* LoadChunk (ZIO* Z) | 207 | static TProtoFunc* LoadChunk (ZIO* Z) |
