diff options
| author | Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> | 1996-11-14 13:00:32 -0200 |
|---|---|---|
| committer | Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> | 1996-11-14 13:00:32 -0200 |
| commit | 536bae58710ef9dfcee63515b25d5ad46a1d2bee (patch) | |
| tree | 84cd8afa83d6b7827020019870e72ca9b010ace3 | |
| parent | 679eddf2961250ee47aa81d754bddf888a62da07 (diff) | |
| download | lua-536bae58710ef9dfcee63515b25d5ad46a1d2bee.tar.gz lua-536bae58710ef9dfcee63515b25d5ad46a1d2bee.tar.bz2 lua-536bae58710ef9dfcee63515b25d5ad46a1d2bee.zip | |
corrected version test (0x23 not 23)
| -rw-r--r-- | undump.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | ** load bytecodes from files | 3 | ** load bytecodes from files |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | char* rcs_undump="$Id: undump.c,v 1.17 1996/11/14 11:44:34 lhf Exp lhf $"; | 6 | char* rcs_undump="$Id: undump.c,v 1.18 1996/11/14 13:33:15 lhf Exp lhf $"; |
| 7 | 7 | ||
| 8 | #include <stdio.h> | 8 | #include <stdio.h> |
| 9 | #include <string.h> | 9 | #include <string.h> |
| @@ -253,7 +253,7 @@ static void LoadHeader(FILE* D) /* TODO: error handling */ | |||
| 253 | int version; | 253 | int version; |
| 254 | LoadSignature(D); | 254 | LoadSignature(D); |
| 255 | version=getc(D); | 255 | version=getc(D); |
| 256 | if (version>23) /* after 2.5 */ | 256 | if (version>0x23) /* after 2.5 */ |
| 257 | { | 257 | { |
| 258 | int oldsizeofI=getc(D); | 258 | int oldsizeofI=getc(D); |
| 259 | int oldsizeofF=getc(D); | 259 | int oldsizeofF=getc(D); |
