From d77d25acf835b13b5d02f6aba5ab8e6c612d2a87 Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 29 Jul 2025 18:42:07 +0200 Subject: [PATCH] use hypotf for P_SegLengthFloat well its hypot but for floats lel --- src/p_setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_setup.c b/src/p_setup.c index 12a34aa04..e034c35b8 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -412,7 +412,7 @@ static inline float P_SegLengthFloat(seg_t *seg) dx = FIXED_TO_FLOAT(seg->v2->x - seg->v1->x); dy = FIXED_TO_FLOAT(seg->v2->y - seg->v1->y); - return (float)hypot(dx, dy); + return hypotf(dx, dy); } #endif