You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2012/05/21 20:52:03 UTC

svn commit: r1341142 - /subversion/trunk/subversion/tests/libsvn_wc/wc-queries-test.c

Author: hwright
Date: Mon May 21 18:52:02 2012
New Revision: 1341142

URL: http://svn.apache.org/viewvc?rev=1341142&view=rev
Log:
Fix integer size mismatch.

* subversion/tests/libsvn_wc/wc-queries-test.c
  (parse_explanation_item): Use size_t for the result of strlen().

Modified:
    subversion/trunk/subversion/tests/libsvn_wc/wc-queries-test.c

Modified: subversion/trunk/subversion/tests/libsvn_wc/wc-queries-test.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/libsvn_wc/wc-queries-test.c?rev=1341142&r1=1341141&r2=1341142&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/libsvn_wc/wc-queries-test.c (original)
+++ subversion/trunk/subversion/tests/libsvn_wc/wc-queries-test.c Mon May 21 18:52:02 2012
@@ -290,7 +290,7 @@ parse_explanation_item(struct explanatio
       if (token && token[0] == '(' && token[1] != '~')
         {
           /* Undo the tokenization to switch parser rules */
-          int token_len = strlen(token);
+          size_t token_len = strlen(token);
 
           if (token + token_len < tmp_end)
             token[token_len] = ' ';
@@ -307,7 +307,7 @@ parse_explanation_item(struct explanatio
       if (token && *token == '(' && token[1] == '~')
         {
           /* Undo the tokenization to switch parser rules */
-          int token_len = strlen(token);
+          size_t token_len = strlen(token);
 
           if (token + token_len < tmp_end)
             token[token_len] = ' ';