diff options
| author | Kazuaki Tanaka <[email protected]> | 2016-09-20 23:15:49 +0000 |
|---|---|---|
| committer | Kazuaki Tanaka <[email protected]> | 2016-09-20 23:15:49 +0000 |
| commit | cb29c9b4156ad63f2cd06ca4b89c981cb70cec58 (patch) | |
| tree | 04c4cdc77a374c7ffa7f090477ba6f759a27ebbf /src | |
| parent | 968ebac00183b2d015be89349d10c4ee96664e47 (diff) | |
| download | mruby-cb29c9b4156ad63f2cd06ca4b89c981cb70cec58.tar.gz mruby-cb29c9b4156ad63f2cd06ca4b89c981cb70cec58.zip | |
Fix return value type of bytecode_decoder
Diffstat (limited to 'src')
| -rw-r--r-- | src/vm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -720,9 +720,9 @@ argnum_error(mrb_state *mrb, mrb_int num) #endif #ifdef MRB_BYTECODE_DECODE_OPTION -#define BYTECODE_DECODER(x) if( (mrb)->bytecode_decoder ) (mrb)->bytecode_decoder((mrb), (x)) +#define BYTECODE_DECODER(x) ((mrb)->bytecode_decoder)?(mrb)->bytecode_decoder((mrb), (x)):(x) #else -#define BYTECODE_DECODER(x) (x); +#define BYTECODE_DECODER(x) (x) #endif |
