changeset 32512:024358659ebd

Avoid unnecessary ().
author reimar
date Sun, 07 Nov 2010 18:13:22 +0000
parents b39155e98ac3
children a150a1bc458d
files sub/sub_cc.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/sub/sub_cc.c	Sun Nov 07 12:47:40 2010 +0000
+++ b/sub/sub_cc.c	Sun Nov 07 18:13:22 2010 +0000
@@ -100,7 +100,7 @@
 	{
 		free(buf->text[0]);
 
-		for(i = 0; i < (buf->lines - 1); i++) buf->text[i] = buf->text[i+1];
+		for(i = 0; i < buf->lines - 1; i++) buf->text[i] = buf->text[i+1];
 
 		buf->text[buf->lines-1] = NULL;
 		buf->lines--;
@@ -286,7 +286,7 @@
   while (curbytes < inputlength) {
     int skip = 2;
 
-    cc_code = *(current);
+    cc_code = current[0];
 
     if (inputlength - curbytes < 2) {
 #ifdef LOG_DEBUG
@@ -295,8 +295,8 @@
       break;
     }
 
-    data1 = *(current+1);
-    data2 = *(current + 2);
+    data1 = current[1];
+    data2 = current[2];
     current++; curbytes++;
 
     switch (cc_code) {