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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to