# HG changeset patch # User reimar # Date 1289153602 0 # Node ID 024358659ebdcbe8634b4e38902409b34161a7ae # Parent b39155e98ac30e9c4769c61dae85fb346514ef94 Avoid unnecessary (). diff -r b39155e98ac3 -r 024358659ebd sub/sub_cc.c --- 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) {