mirror of
https://github.com/vlang/v.git
synced 2025-08-03 09:47:15 -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 {
|
||||
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')
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user