aboutsummaryrefslogtreecommitdiff
path: root/sort.h
diff options
context:
space:
mode:
Diffstat (limited to 'sort.h')
-rw-r--r--sort.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sort.h b/sort.h
index 9266093..dc78ee8 100644
--- a/sort.h
+++ b/sort.h
@@ -10,7 +10,7 @@
void T##_qsort(T* arr, int n);
#define QSORT_IMPL(T) \
- void T##_qsort_swap(T* arr, int lhs, int rhs) { \
+ static inline void T##_qsort_swap(T* arr, int lhs, int rhs) { \
if (lhs == rhs) return; \
T buf; \
buf = arr[lhs]; \