lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 8d82aa821a399fc08f87c5c4358654d3e375d5da
parent cec1ffb80b6d482c4d66ce2b56fe5d8c862253b0
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Fri,  1 Mar 1996 13:53:40 -0300

small correction (about types)

Diffstat:
Mopcode.h | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/opcode.h b/opcode.h @@ -1,6 +1,6 @@ /* ** TeCGraf - PUC-Rio -** $Id: opcode.h,v 3.16 1996/01/26 18:03:19 roberto Exp roberto $ +** $Id: opcode.h,v 3.17 1996/02/13 17:30:39 roberto Exp roberto $ */ #ifndef opcode_h @@ -109,14 +109,14 @@ typedef struct Object typedef union { - struct {char c1; char c2;} m; + struct {Byte c1; Byte c2;} m; Word w; } CodeWord; #define get_word(code,pc) {code.m.c1 = *pc++; code.m.c2 = *pc++;} typedef union { - struct {char c1; char c2; char c3; char c4;} m; + struct {Byte c1; Byte c2; Byte c3; Byte c4;} m; float f; } CodeFloat; #define get_float(code,pc) {code.m.c1 = *pc++; code.m.c2 = *pc++;\ @@ -124,7 +124,7 @@ typedef union typedef union { - struct {char c1; char c2; char c3; char c4;} m; + struct {Byte c1; Byte c2; Byte c3; Byte c4;} m; TFunc *tf; } CodeCode; #define get_code(code,pc) {code.m.c1 = *pc++; code.m.c2 = *pc++;\