From b7d81045dbc574995947fd2607f250f11c950da6 Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Sun, 5 Jan 2020 12:40:45 +0200 Subject: fixed the variable capture in read_word on 32 bit systems refs #97 --- colm/bytecode.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/colm/bytecode.c b/colm/bytecode.c index 6f4d0b5d..6bb9be1f 100644 --- a/colm/bytecode.c +++ b/colm/bytecode.c @@ -56,12 +56,12 @@ #if SIZEOF_LONG == 4 #define read_type( type, i ) do { \ - word_t w; \ - w = ((word_t) *instr++); \ - w |= ((word_t) *instr++) << 8; \ - w |= ((word_t) *instr++) << 16; \ - w |= ((word_t) *instr++) << 24; \ - i = (type) w; \ + word_t _w; \ + _w = ((word_t) *instr++); \ + _w |= ((word_t) *instr++) << 8; \ + _w |= ((word_t) *instr++) << 16; \ + _w |= ((word_t) *instr++) << 24; \ + i = (type) _w; \ } while(0) #define read_type_p( Type, i, p ) do { \ -- cgit v1.2.1