]> git.ipfire.org Git - thirdparty/libsolv.git/commit
Fix incorrect comparison with multiple values 90/head
authorClemens Lang <neverpanic@gmail.com>
Sat, 30 May 2015 19:56:22 +0000 (21:56 +0200)
committerClemens Lang <neverpanic@gmail.com>
Wed, 10 Jun 2015 23:35:21 +0000 (01:35 +0200)
commit97b8ae96709066c5b91859bddc09eeb216b9d490
tree32c127a29aa862bfe42dbf45f0effd8cb2f0e81a
parentf50a3fc8e946ad1eac9bcdaa81e8dad83b19074a
Fix incorrect comparison with multiple values

  a == X || Y
is valid C, but does interesting things and probably not what you would
expect. Luckily, clang warns for this kind of problem:
  warning: use of logical '||' with constant operand [-Wconstant-logical-operand]
Fix this by using the proper comparison logic, which is
  a == X || a == Y

Signed-off-by: Clemens Lang <neverpanic@gmail.com>
bindings/solv.i