diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-04-06 07:10:30 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-04-06 07:10:30 -0700 |
commit | 5f273f6ae93d6da0973af1e6a4bc9f92af95018f (patch) | |
tree | fde7f565064074a7b5329f80258ac9921b7163fe | |
parent | 5b43b5134a3549f94aeacb07d0e2839ccb09df03 (diff) | |
download | txr-5f273f6ae93d6da0973af1e6a4bc9f92af95018f.tar.gz txr-5f273f6ae93d6da0973af1e6a4bc9f92af95018f.tar.bz2 txr-5f273f6ae93d6da0973af1e6a4bc9f92af95018f.zip |
vm: C++ port issue: wrong cast.
* vm.c (vm_insn_opcode): Conversion between integer types
requires convert rather than coerce.
-rw-r--r-- | vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -297,7 +297,7 @@ static void vm_reset(struct vm *vm, struct vm_desc *vd, vm->dspl = dspl; } -#define vm_insn_opcode(insn) coerce(vm_op_t, ((insn) >> 26)) +#define vm_insn_opcode(insn) convert(vm_op_t, ((insn) >> 26)) #define vm_insn_operand(insn) ((insn) & 0xFFFFU) #define vm_insn_extra(insn) (((insn) >> 16) & 0x3FF) #define vm_insn_bigop(insn) (((insn) & 0x3FFFFFFU)) |