16 lines
470 B
Diff
16 lines
470 B
Diff
Index: 1.0.0.rc13/lib/internal.h
|
|
===================================================================
|
|
--- 1.0.0.rc13.orig/lib/internal.h
|
|
+++ 1.0.0.rc13/lib/internal.h
|
|
@@ -49,8 +49,8 @@
|
|
#define u_int64_t uint64_t
|
|
#endif
|
|
|
|
-#define min(a, b) a < b ? a : b
|
|
-#define max(a, b) a > b ? a : b
|
|
+#define min(a, b) ((a) < (b) ? (a) : (b))
|
|
+#define max(a, b) ((a) > (b) ? (a) : (b))
|
|
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(*a))
|
|
#define ARRAY_END(a) (a + ARRAY_SIZE(a))
|
|
|