ソースを参照

rename I to J to avoid redefining a variable (clang warning)

David Kalnischkies 15 年 前
親
コミット
470a5c3851
共有1 個のファイルを変更した、5 個の追加 と 5 個の削除を含む
  1. 5 5
      apt-pkg/deb/deblistparser.cc

+ 5 - 5
apt-pkg/deb/deblistparser.cc

@@ -284,18 +284,18 @@ unsigned short debListParser::VersionHash()
       /* Strip out any spaces from the text, this undoes dpkgs reformatting
       /* Strip out any spaces from the text, this undoes dpkgs reformatting
          of certain fields. dpkg also has the rather interesting notion of
          of certain fields. dpkg also has the rather interesting notion of
          reformatting depends operators < -> <= */
          reformatting depends operators < -> <= */
-      char *I = S;
+      char *J = S;
       for (; Start != End; Start++)
       for (; Start != End; Start++)
       {
       {
 	 if (isspace(*Start) == 0)
 	 if (isspace(*Start) == 0)
-	    *I++ = tolower_ascii(*Start);
+	    *J++ = tolower_ascii(*Start);
 	 if (*Start == '<' && Start[1] != '<' && Start[1] != '=')
 	 if (*Start == '<' && Start[1] != '<' && Start[1] != '=')
-	    *I++ = '=';
+	    *J++ = '=';
 	 if (*Start == '>' && Start[1] != '>' && Start[1] != '=')
 	 if (*Start == '>' && Start[1] != '>' && Start[1] != '=')
-	    *I++ = '=';
+	    *J++ = '=';
       }
       }
 
 
-      Result = AddCRC16(Result,S,I - S);
+      Result = AddCRC16(Result,S,J - S);
    }
    }
    
    
    return Result;
    return Result;