Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed May 27, 2023
1 parent c8d9ff5 commit 4ee4da8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/stdlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,11 @@ static inline void swapfunc(char *a, char *b, size_t n, int swaptype)
} while (0)

#define vecswap(a, b, n) if ((n) > 0) swapfunc(a, b, n, swaptype)
#define min(a, b) (a) < (b) ? a : b

static inline unsigned long min(unsigned long a, unsigned long b)
{
return (a) < (b) ? a : b;
}

static inline char* med3(char *a, char *b, char *c, int (*cmp)(const void *, const void *))
{
Expand Down

0 comments on commit 4ee4da8

Please sign in to comment.