Nico Weber
9a8099eb8b
Fix Wbitwise-instead-of-logical warnings
...
`a && b` only evaluates b if a is true. `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.
From what I can tell, in Dawn it wasn't important if we evaluate both
branches or not in the places where this fired, so I went with `&&`
everywhere.
Bug: chromium:1255745
Change-Id: Ifa196a7150d5bdfb8527fe8b6f40d7e2e957d609
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/66200
Auto-Submit: Nico Weber <thakis@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
2021-10-08 14:39:39 +00:00
..
2021-05-21 02:26:58 +00:00
2021-09-17 17:07:43 +00:00
2021-07-14 00:42:31 +00:00
2021-10-04 11:30:02 +00:00
2021-06-17 21:36:11 +00:00
2021-09-01 22:15:41 +00:00
2021-09-20 19:25:05 +00:00
2021-10-04 11:30:02 +00:00
2021-07-13 15:21:07 +00:00
2021-06-09 18:07:32 +00:00
2021-06-30 11:33:04 +00:00
2021-09-15 18:16:50 +00:00
2021-07-13 15:21:07 +00:00
2021-10-04 11:30:02 +00:00
2021-09-10 16:09:19 +00:00
2021-09-17 07:39:00 +00:00
2021-06-17 21:36:11 +00:00
2021-06-23 19:19:06 +00:00
2021-10-04 11:30:02 +00:00
2021-10-04 11:30:02 +00:00
2020-12-01 21:52:37 +00:00
2021-09-28 02:05:00 +00:00
2021-07-09 02:47:49 +00:00
2021-07-09 02:47:49 +00:00
2021-08-10 04:07:37 +00:00
2021-09-10 14:56:09 +00:00
2021-09-08 02:21:33 +00:00
2021-09-02 21:15:40 +00:00
2021-02-24 22:09:30 +00:00
2021-09-28 11:52:17 +00:00
2021-09-23 00:15:19 +00:00
2021-07-16 03:22:58 +00:00
2021-05-21 05:01:38 +00:00
2021-05-21 05:01:38 +00:00
2021-08-03 15:29:38 +00:00
2021-09-01 22:15:41 +00:00
2021-08-10 04:07:37 +00:00
2021-07-26 19:43:19 +00:00
2021-09-17 17:07:43 +00:00
2021-05-21 05:01:38 +00:00
2021-08-10 04:07:37 +00:00
2021-06-25 08:10:42 +00:00
2021-06-28 18:38:24 +00:00
2021-08-10 04:07:37 +00:00
2021-05-26 01:04:32 +00:00
2021-10-04 11:30:02 +00:00
2021-07-26 19:43:19 +00:00
2021-07-13 15:21:07 +00:00
2020-12-12 02:09:56 +00:00
2021-10-04 11:30:02 +00:00
2021-05-21 05:01:38 +00:00
2021-10-08 14:39:39 +00:00
2021-09-17 16:05:40 +00:00
2021-05-21 00:01:08 +00:00
2021-07-07 23:30:00 +00:00
2021-05-21 05:01:38 +00:00
2021-09-13 20:35:49 +00:00
2021-07-26 19:43:19 +00:00
2021-08-10 04:07:37 +00:00
2021-08-10 04:07:37 +00:00
2021-06-17 21:36:11 +00:00
2021-10-04 11:30:02 +00:00
2021-09-28 20:15:52 +00:00
2021-09-17 17:07:43 +00:00
2021-09-10 14:56:09 +00:00
2021-05-26 01:04:32 +00:00
2021-09-28 11:52:17 +00:00
2021-08-10 04:07:37 +00:00
2021-08-10 04:07:37 +00:00
2021-08-10 04:07:37 +00:00
2021-08-10 04:07:37 +00:00
2021-10-04 11:30:02 +00:00
2021-07-06 10:49:50 +00:00
2021-09-15 03:17:42 +00:00
2021-08-23 10:10:11 +00:00
2021-05-21 05:01:38 +00:00
2021-06-17 21:36:11 +00:00
2021-05-26 01:04:32 +00:00