trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r942499 - /trafficserver/traffic/trunk/libinktomi++/ink_base64.cc
Date Sun, 09 May 2010 07:16:55 GMT
Author: mturk
Date: Sun May  9 07:16:55 2010
New Revision: 942499

URL: http://svn.apache.org/viewvc?rev=942499&view=rev
Log:
Fix compile time warning about using char for array index

Modified:
    trafficserver/traffic/trunk/libinktomi++/ink_base64.cc

Modified: trafficserver/traffic/trunk/libinktomi++/ink_base64.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/libinktomi%2B%2B/ink_base64.cc?rev=942499&r1=942498&r2=942499&view=diff
==============================================================================
--- trafficserver/traffic/trunk/libinktomi++/ink_base64.cc (original)
+++ trafficserver/traffic/trunk/libinktomi++/ink_base64.cc Sun May  9 07:16:55 2010
@@ -69,8 +69,8 @@ ink_base64_decode(const char *input, int
       codes[i] = cc++;
     for (i = '0'; i <= '9'; i++)
       codes[i] = cc++;
-    codes['+'] = cc++;
-    codes['/'] = cc++;
+    codes[0 + '+'] = cc++;
+    codes[0 + '/'] = cc++;
     initialized = TRUE;
   }
   // compute ciphertext length



Mime
View raw message