ci: workaround vlib/gg/draw_fns_api_test.v failure with tcc on windows

This commit is contained in:
Delyan Angelov 2023-10-22 18:30:48 +03:00
parent 48a1d6cc6c
commit 34cf5221e1
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -12,11 +12,11 @@ pub fn hypot(x f64, y f64) f64 {
if x != 0.0 || y != 0.0 {
abs_x := abs(x)
abs_y := abs(y)
min, max := minmax(abs_x, abs_y)
rat := min / max
cmin, cmax := minmax(abs_x, abs_y)
rat := cmin / cmax
root_term := sqrt(1.0 + rat * rat)
if max < max_f64 / root_term {
result = max * root_term
if cmax < max_f64 / root_term {
result = cmax * root_term
} else {
panic('overflow in hypot_e function')
}