summaryrefslogtreecommitdiffstats
path: root/source/core
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2019-06-18 11:58:25 -0700
committerGitHub <noreply@github.com>2019-06-18 11:58:25 -0700
commit896e460dc8146bc9a39296ea72f320fe3db28cee (patch)
tree9dcda67c64ecae1c00625a20a6463477f1cce2f7 /source/core
parent0e052cfd8ecbb74204770ed872a701e64e75c38a (diff)
Fix bug in handling of `h` literal suffix. (#990)
A literal like: 2.0h is supposed to default to `half` precision, but there was a typo in our logic that meant that the `half` case was mistakenly checking for `l` and not `h` and so it would never trigger (because the `double` case right before it was checking for `l` first), and certainly wouldn't trigger on an `h`. There was also a bug that a literal with `hf`: 2.0hf would go into the path for the `f` suffix without considering the `h`. These changes really ought to have some tests for them, but this was also just a quick issue I noticed while working on something else.
Diffstat (limited to 'source/core')
0 files changed, 0 insertions, 0 deletions