diff options
author | bptato <nincsnevem662@gmail.com> | 2023-09-20 11:54:26 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-09-20 11:56:26 +0200 |
commit | 9276603b49f3be41226fea47bb63f9d2f6baad8b (patch) | |
tree | 89557b2d4033d3e470d81ae7f6566ac3758b09df /src/types/url.nim | |
parent | 3194b602d8b2f53d2db3a594300e104bcac67c10 (diff) | |
download | chawan-9276603b49f3be41226fea47bb63f9d2f6baad8b.tar.gz |
px: convert to float first for percentage values
px now converts to float64 before converting back to a layout unit when calculating percentage values. This should reduce overflow crashes somewhat. (The real solution would be to not crash on overflow, but that's a little more difficult problem to solve.)
Diffstat (limited to 'src/types/url.nim')
0 files changed, 0 insertions, 0 deletions