Ben Clayton 2b4df78891 tint/number: Fix CheckedConvert() logic
This function was attempting to pick a higher-precision type by using
the decltype() of FROM + TO. This doesn't work if FROM and TO are both
similar bit-widths, and of a different signness, as the picked type may
not be wide enough to hold both the signed and unsigned representation.

Just use AInt or AFloat (both 64-bit), which are the largest types
supported by WGSL.

Change-Id: Ic76475d98bad8def12a0283a1c83c62f2ed58b5d
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/95041
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: dan sinclair <dsinclair@google.com>
2022-06-29 11:31:41 +00:00
..
2022-05-01 14:40:55 +00:00
2022-05-01 14:40:55 +00:00
2022-05-01 14:40:55 +00:00
2022-06-15 10:02:37 +00:00
2022-05-01 14:40:55 +00:00
2022-05-01 14:40:55 +00:00
2022-05-01 14:40:55 +00:00
2022-05-01 14:40:55 +00:00
2022-05-01 14:40:55 +00:00
2022-05-01 14:40:55 +00:00