diff options
| author | Yong He <yonghe@outlook.com> | 2024-11-02 20:35:22 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-02 20:35:22 -0700 |
| commit | f4d5aa73fb72a483f04bb6b014e80192331504ea (patch) | |
| tree | 6b3143b85f05ccba735beb7b98531104e8445053 /source | |
| parent | 61cddbee405935fa8391a757a08bcbe4ea7ac98f (diff) | |
Revert uint<->int implicit cast cost to prefer promotion to unsigned. (#5480)
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-ast-support-types.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-ast-support-types.h b/source/slang/slang-ast-support-types.h index beacbaebe..0a2dbe78d 100644 --- a/source/slang/slang-ast-support-types.h +++ b/source/slang/slang-ast-support-types.h @@ -127,10 +127,10 @@ enum : ConversionCost // Same-size size unsigned->signed conversions are potentially lossy, but they are commonly // allowed silently. - kConversionCost_SameSizeUnsignedToSignedConversion = 250, + kConversionCost_SameSizeUnsignedToSignedConversion = 300, // Conversion from signed->unsigned integer of same or greater size - kConversionCost_SignedToUnsignedConversion = 300, + kConversionCost_SignedToUnsignedConversion = 250, // Cost of converting an integer to a floating-point type kConversionCost_IntegerToFloatConversion = 400, |
