[Bug 229718] src/lib/libefivar/uefi-dplib.h:579: strange math ?

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jul 12 10:40:37 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229718

            Bug ID: 229718
           Summary: src/lib/libefivar/uefi-dplib.h:579: strange math ?
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs at FreeBSD.org
          Reporter: dcb314 at hotmail.com

src/lib/libefivar/uefi-dplib.h:579]: (warning) Comparison of modulo result is
predetermined, because it is always less than 1.

Source code is

        if (buflen != len / 2 || (len % 1) == 1)

Maybe better code

        if (buflen != len / 2 || (len % 2) == 1)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list