From f157bd98c51ce91b009245b762baf45cd2763faa Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Thu, 24 Oct 2013 19:56:03 +0200 Subject: Invalid assertion in xmix_vm.c (closes #40359) --- mixlib/xmix_vm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mixlib/xmix_vm.c b/mixlib/xmix_vm.c index dec0289..0f1104a 100644 --- a/mixlib/xmix_vm.c +++ b/mixlib/xmix_vm.c @@ -1,7 +1,7 @@ /* ---------------------- xmix_vm.c : * Implementation of the functions declared in xmix_vm.h * ------------------------------------------------------------------ - * Copyright (C) 2000, 2003, 2004, 2007, 2010 Free Software Foundation, Inc. + * Copyright (C) 2000, 2003, 2004, 2007, 2010, 2013 Free Software Foundation, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -439,7 +439,7 @@ jpx_handler_ (mix_vm_t *vm, const mix_ins_t *ins) mix_ins_id_t id = mix_ins_id_from_ins (*ins); mix_word_t val; - g_assert (ins->opcode >= mix_opJAx || ins->opcode <= mix_opJXx); + g_assert (ins->opcode >= mix_opJAx && ins->opcode <= mix_opJXx); fail_if_not_ (vm, MEMOK_ (addr), MIX_VM_ERROR_BAD_ACCESS); switch (ins->opcode) { -- cgit v1.2.3