diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-10-09 10:16:12 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-09 10:16:12 -0700 |
| commit | fe5eef423389b82e7eb2586fb7a16b96afd004f2 (patch) | |
| tree | 83b20983dc33dfaa664c7b8875ea93d2976a31a9 /source/slang/preprocessor.cpp | |
| parent | faf26afdcfd343c79517f56f215bf8dcd5e0b992 (diff) | |
Parser: fix precedence of cast expressions (#203)
We were accidentally parsing this:
(uint) a / b
as this:
(uint) ( a / b )
when it should be:
((uint) a) / b
This is a bug that seems to have been inherited from a long time ago. It has taken a while to bite anybody because the only class of expressions it would hit are multiplicative ones, and in many cases the difference in the cast order won't be noticed for values in a limited range.
Diffstat (limited to 'source/slang/preprocessor.cpp')
0 files changed, 0 insertions, 0 deletions
