You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by ji...@apache.org on 2011/01/19 03:51:39 UTC

svn commit: r1060660 - /apr/apr/branches/1.5.x/strings/apr_snprintf.c

Author: jim
Date: Wed Jan 19 02:51:38 2011
New Revision: 1060660

URL: http://svn.apache.org/viewvc?rev=1060660&view=rev
Log:
quiet warning...

Modified:
    apr/apr/branches/1.5.x/strings/apr_snprintf.c

Modified: apr/apr/branches/1.5.x/strings/apr_snprintf.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.5.x/strings/apr_snprintf.c?rev=1060660&r1=1060659&r2=1060660&view=diff
==============================================================================
--- apr/apr/branches/1.5.x/strings/apr_snprintf.c (original)
+++ apr/apr/branches/1.5.x/strings/apr_snprintf.c Wed Jan 19 02:51:38 2011
@@ -818,14 +818,14 @@ APR_DECLARE(int) apr_vformatter(int (*fl
              * is "d' then the second if condition is never true.
              */
             if ((sizeof(APR_OFF_T_FMT) > sizeof(APR_INT64_T_FMT)) &&
-                (sizeof(APR_OFF_T_FMT) == 4 &&
+                ((sizeof(APR_OFF_T_FMT) == 4 &&
                  fmt[0] == APR_OFF_T_FMT[0] &&
                  fmt[1] == APR_OFF_T_FMT[1]) ||
                 (sizeof(APR_OFF_T_FMT) == 3 &&
                  fmt[0] == APR_OFF_T_FMT[0]) ||
                 (sizeof(APR_OFF_T_FMT) > 4 &&
                  strncmp(fmt, APR_OFF_T_FMT, 
-                         sizeof(APR_OFF_T_FMT) - 2) == 0)) {
+                         sizeof(APR_OFF_T_FMT) - 2) == 0))) {
                 /* Need to account for trailing 'd' and null in sizeof() */
                 var_type = IS_QUAD;
                 fmt += (sizeof(APR_OFF_T_FMT) - 2);