Explorar el Código

Fixed again min/max macros.

Florian DORMONT hace 10 años
padre
commit
4d53a6779a
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      include/misc.h

+ 2 - 2
include/misc.h

@@ -1,8 +1,8 @@
 #ifndef INCLUDE_MISC_H
 #define INCLUDE_MISC_H
 
-#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))
 
 #endif