From 66d118a078eb65c4767d4c8656df9cb54299555a Mon Sep 17 00:00:00 2001 From: Victor Taelin Date: Tue, 4 Jun 2024 19:57:20 -0300 Subject: [PATCH] fix broken compilation --- src/hvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hvm.c b/src/hvm.c index 628525de..89bec421 100644 --- a/src/hvm.c +++ b/src/hvm.c @@ -284,11 +284,11 @@ static inline void swap(Port *a, Port *b) { Port x = *a; *a = *b; *b = x; } -inline u32 min(u32 a, u32 b) { +static inline u32 min(u32 a, u32 b) { return (a < b) ? a : b; } -inline f32 clamp(f32 x, f32 min, f32 max) { +static inline f32 clamp(f32 x, f32 min, f32 max) { const f32 t = x < min ? min : x; return (t > max) ? max : t; }