ruby-changes:18538
From: akr <ko1@a...>
Date: Sun, 16 Jan 2011 20:56:30 +0900 (JST)
Subject: [ruby-changes:18538] Ruby:r30560 (trunk): * vsnprintf.c: parenthesize macro arguments.
akr 2011-01-16 20:56:18 +0900 (Sun, 16 Jan 2011) New Revision: 30560 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30560 Log: * vsnprintf.c: parenthesize macro arguments. Modified files: trunk/ChangeLog trunk/vsnprintf.c Index: ChangeLog =================================================================== --- ChangeLog (revision 30559) +++ ChangeLog (revision 30560) @@ -1,3 +1,7 @@ +Sun Jan 16 20:55:45 2011 Tanaka Akira <akr@f...> + + * vsnprintf.c: parenthesize macro arguments. + Sat Jan 15 11:57:30 2011 Nobuyoshi Nakada <nobu@r...> * configure.in (warnflags): add -Werror=implicit-function-declaration Index: vsnprintf.c =================================================================== --- vsnprintf.c (revision 30559) +++ vsnprintf.c (revision 30560) @@ -597,10 +597,10 @@ #define PAD(howmany, with) { \ if ((n = (howmany)) > 0) { \ while (n > PADSIZE) { \ - PRINT(with, PADSIZE); \ + PRINT((with), PADSIZE); \ n -= PADSIZE; \ } \ - PRINT(with, n); \ + PRINT((with), n); \ } \ } #if SIZEOF_LONG > SIZEOF_INT @@ -611,10 +611,10 @@ errno = ENOMEM; \ goto error; \ } \ - if (ln > 0) PAD((int)ln, with); \ + if (ln > 0) PAD((int)ln, (with)); \ } #else -#define PAD_L(howmany, with) PAD(howmany, with) +#define PAD_L(howmany, with) PAD((howmany), (with)) #endif #define FLUSH() { \ if (uio.uio_resid && BSD__sprint(fp, &uio)) \ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/