qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [Bug 1625987] [NEW] target-arm/translate-a64.c:2028: possib


From: dcb
Subject: [Qemu-devel] [Bug 1625987] [NEW] target-arm/translate-a64.c:2028: possible coding error ?
Date: Wed, 21 Sep 2016 08:29:58 -0000

Public bug reported:

target-arm/translate-a64.c:2028:37: warning: ?: using integer constants
in boolean context [-Wint-in-bool-context]

Source code is

        bool iss_sf = opc == 0 ? 32 : 64;

Maybe better code

        bool iss_sf = (opc == 0) ? 32 : 64;

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1625987

Title:
  target-arm/translate-a64.c:2028: possible coding error ?

Status in QEMU:
  New

Bug description:
  target-arm/translate-a64.c:2028:37: warning: ?: using integer
  constants in boolean context [-Wint-in-bool-context]

  Source code is

          bool iss_sf = opc == 0 ? 32 : 64;

  Maybe better code

          bool iss_sf = (opc == 0) ? 32 : 64;

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1625987/+subscriptions



reply via email to

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