about summary refs log tree commit diff stats
path: root/src/types/url.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-09-20 11:54:26 +0200
committerbptato <nincsnevem662@gmail.com>2023-09-20 11:56:26 +0200
commit9276603b49f3be41226fea47bb63f9d2f6baad8b (patch)
tree89557b2d4033d3e470d81ae7f6566ac3758b09df /src/types/url.nim
parent3194b602d8b2f53d2db3a594300e104bcac67c10 (diff)
downloadchawan-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