Commit dcfc431
authored
fix(ios): prevent crash on color values with high alpha (#234)
`Int32(value)` traps when ARGB color values exceed `Int32.max` (e.g.
`0xFF0000FF` = opaque blue). Uses `Int64` + `truncatingIfNeeded` for
safe conversion.1 parent 018c63d commit dcfc431
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments