Skip to content

Commit

Permalink
fix broken compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorTaelin committed Jun 4, 2024
1 parent f158106 commit 66d118a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 66d118a

Please sign in to comment.