Fix precedence issue

Note that this is evidence in favor of https://github.com/gfx-rs/naga/issues/2098 - my code is actually wrong, and it was caught by trying to port it to run in Chrome Canary.
This commit is contained in:
Raph Levien 2022-11-08 19:30:47 -08:00
parent 494f523c41
commit 5bd3a3639f

View file

@ -63,7 +63,7 @@ fn reduce_tag(tag_word: u32) -> TagMonoid {
a += a >> 16u;
c.pathseg_offset = a & 0xffu;
#ifdef full
c.path_ix = countOneBits(tag_word & (PATH_TAG_PATH) * 0x1010101u);
c.path_ix = countOneBits(tag_word & (PATH_TAG_PATH * 0x1010101u));
c.linewidth_ix = countOneBits(tag_word & (PATH_TAG_LINEWIDTH * 0x1010101u));
#endif
return c;