chiark / gitweb /
polypath.c: Fix a compiler warning
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 19 Nov 2019 01:16:29 +0000 (01:16 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 19 Nov 2019 20:27:57 +0000 (20:27 +0000)
commit611404b83e10fb82a62c7649f5800ae294dedb1e
treef05f45b438dc7bfdb0ea9707798309e0a7508eb5
parente8e1ac249c8fc2c22a61f774024e2d2bcba22f5a
polypath.c: Fix a compiler warning

  polypath.c:520:20: error: '*' in boolean context, suggest '&&' instead [-Werror=int-in-bool-context]
    520 |     *allreasonable *= reasonable;
        |                    ^~

This is not really a very helpful suggstion because there is no &&=.
Happily the compiler doesn't (currently) complain about &= which is
the same when both arguments are bools.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
polypath.c