skia2/modules/skottie
Nico Weber 39edd521a2 Fix Wbitwise-instead-of-logical warnings
`a || b` only evaluates b if a is false. `a | b` always evaluates
both a and b. If a and b are of type bool, `||` is usually what you
want, so clang now warns on `|` where both arguments are of type bool.

In Skia, 3 of 3 uses of `|` were intentional as far as I can tell (one
had an explicit comment, the other two didn't). Rewrite them slightly
to make this intent more clear and to suppress the warning.

There was also one use of `&`. That one looks like a (benign) typo for
`&&`, so change it.

Bug: chromium:1255745
Change-Id: I9ac37075311005c0a8fcb8d1379f516510929423
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/459456
Commit-Queue: Nico Weber <thakis@chromium.org>
Commit-Queue: Florin Malita <fmalita@google.com>
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Florin Malita <fmalita@google.com>
2021-10-14 14:50:09 +00:00
..
fuzz [fuzz] Standardize, document, and backport fuzzing defines. 2020-09-14 13:36:10 +00:00
gm Make class members that are static constexpr also be inline. 2021-10-11 16:22:59 +00:00
include Export some classes callers may use for Skottie. 2021-10-13 01:35:54 +00:00
src Fix Wbitwise-instead-of-logical warnings 2021-10-14 14:50:09 +00:00
tests [skottie] Log text layout errors 2021-10-14 14:29:11 +00:00
utils Expanded PropertyObserver interface to include Node Type 2021-06-11 17:00:47 +00:00
BUILD.gn Reland "[skottie] AllCaps support" 2021-09-03 14:43:59 +00:00
skottie.gni add CCToner support to skottie 2021-10-08 17:03:50 +00:00