mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Change the conversion rule to favor any number of widenings (CGFloat -> Double) over even a single narrowing conversion and if there is no way to avoid narrowing (due to contextual requirements) attempt it as late as possible (the deeper in the AST that conversion is located the higher its score). This is a generally better rule when it comes to rounding and information loss that would result from narrowing conversions.
443 KiB
443 KiB