This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sim/18575] New: h8300/compile.c:3844: bad if test ?


https://sourceware.org/bugzilla/show_bug.cgi?id=18575

            Bug ID: 18575
           Summary: h8300/compile.c:3844: bad if test ?
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sim
          Assignee: unassigned at sourceware dot org
          Reporter: dcb314 at hotmail dot com
                CC: vapier at gentoo dot org
  Target Milestone: ---

[binutils-gdb/sim/h8300/compile.c:3844]: (warning) Logical disjunction always
evaluates to true: mac > 2147483647 || mac < 18446744071562067968.

Source code is

  if (mac > 0x7fffffff || mac < 0xffffffff80000000LL)

Maybe better code

  if (mac > 0x7fffffff && mac < 0xffffffff80000000LL)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]