Explorar o código

Unparenthesized parameter in macro 'utstring_reserve'

Francois Perrad %!s(int64=10) %!d(string=hai) anos
pai
achega
3f1597ff34
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/utstring.h

+ 2 - 2
src/utstring.h

@@ -49,9 +49,9 @@ typedef struct {
 #define utstring_reserve(s,amt)                            \
 do {                                                       \
   if (((s)->n - (s)->i) < (size_t)(amt)) {                 \
-     (s)->d = (char*)realloc((s)->d, (s)->n + amt);        \
+     (s)->d = (char*)realloc((s)->d, (s)->n + (amt));      \
      if ((s)->d == NULL) oom();                            \
-     (s)->n += amt;                                        \
+     (s)->n += (amt);                                      \
   }                                                        \
 } while(0)