mirror of
https://github.com/vlang/v.git
synced 2025-09-07 22:30:57 -04:00
ci: workaround vlib/gg/draw_fns_api_test.v failure with tcc on windows
This commit is contained in:
parent
48a1d6cc6c
commit
34cf5221e1
@ -12,11 +12,11 @@ pub fn hypot(x f64, y f64) f64 {
|
|||||||
if x != 0.0 || y != 0.0 {
|
if x != 0.0 || y != 0.0 {
|
||||||
abs_x := abs(x)
|
abs_x := abs(x)
|
||||||
abs_y := abs(y)
|
abs_y := abs(y)
|
||||||
min, max := minmax(abs_x, abs_y)
|
cmin, cmax := minmax(abs_x, abs_y)
|
||||||
rat := min / max
|
rat := cmin / cmax
|
||||||
root_term := sqrt(1.0 + rat * rat)
|
root_term := sqrt(1.0 + rat * rat)
|
||||||
if max < max_f64 / root_term {
|
if cmax < max_f64 / root_term {
|
||||||
result = max * root_term
|
result = cmax * root_term
|
||||||
} else {
|
} else {
|
||||||
panic('overflow in hypot_e function')
|
panic('overflow in hypot_e function')
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user