Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jul 2018 10:40:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 229718] src/lib/libefivar/uefi-dplib.h:579: strange math ?
Message-ID:  <bug-229718-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229718

            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@FreeBSD.org
          Reporter: dcb314@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 !=3D len / 2 || (len % 1) =3D=3D 1)

Maybe better code

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-229718-227>