[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-mdk] [bug #40359] mdk-1.2.7/mixlib/xmix_vm.c:442: possible bad if t

From: David Binderman
Subject: [bug-mdk] [bug #40359] mdk-1.2.7/mixlib/xmix_vm.c:442: possible bad if test ?
Date: Thu, 24 Oct 2013 08:38:03 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0


                 Summary: mdk-1.2.7/mixlib/xmix_vm.c:442: possible bad if test
                 Project: GNU MIX Development Kit
            Submitted by: dcb314
            Submitted on: Thu 24 Oct 2013 08:38:02 GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any



Source code is

  g_assert (ins->opcode >= mix_opJAx || ins->opcode <= mix_opJXx);

Suggest swap || for &&

gcc compiler flag -Wlogical-op said

xmix_vm.c:442:3: warning: logical 'or' of collectively exhaustive tests is
always true [-Wlogical-op]


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]