apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1060661 - /apr/apr/branches/1.4.x/strings/apr_snprintf.c
Date Wed, 19 Jan 2011 02:51:52 GMT
Author: jim
Date: Wed Jan 19 02:51:52 2011
New Revision: 1060661

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

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

Modified: apr/apr/branches/1.4.x/strings/apr_snprintf.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.4.x/strings/apr_snprintf.c?rev=1060661&r1=1060660&r2=1060661&view=diff
==============================================================================
--- apr/apr/branches/1.4.x/strings/apr_snprintf.c (original)
+++ apr/apr/branches/1.4.x/strings/apr_snprintf.c Wed Jan 19 02:51:52 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);



Mime
View raw message