From a2123c7f27d9e7f6c8483c7981e2c8d716bf746a Mon Sep 17 00:00:00 2001 From: gambas Date: Sun, 12 Aug 2018 00:22:44 +0200 Subject: [PATCH] Accesses to byte global variables are compiled correctly now. [GB.JIT] * BUG: Accesses to byte global variables are compiled correctly now. --- main/lib/jit/gb.jit/jit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/lib/jit/gb.jit/jit.h b/main/lib/jit/gb.jit/jit.h index 3cac6f231..988e2c207 100644 --- a/main/lib/jit/gb.jit/jit.h +++ b/main/lib/jit/gb.jit/jit.h @@ -301,7 +301,7 @@ enum #define ADDR_UNSAFE(_val) ((char *)((_val).value)) #define GET_b(_addr) (*(bool *)(_addr)) -#define GET_c(_addr) (*(uchar *)()_addr)) +#define GET_c(_addr) (*(uchar *)(_addr)) #define GET_h(_addr) (*(short *)(_addr)) #define GET_i(_addr) (*(int *)(_addr)) #define GET_l(_addr) (*(int64_t *)(_addr))