Ver Fonte

correct LENGTH()

Matthias-Christian Ott há 17 anos atrás
pai
commit
c61b34e8e1
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      std.c

+ 1 - 1
std.c

@@ -13,7 +13,7 @@
 #include <string.h>
 #include <unistd.h>
 
-#define LENGTH(x)	(sizeof (x) / sizeof (x)[0])
+#define LENGTH(x)	(sizeof(x) / sizeof((x)[0]))
 #define MAX(a,b)	(((a) > (b)) ? (a) : (b))
 #define MIN(a,b)	(((a) < (b)) ? (a) : (b))