Fix bug
- comparison of signed and unsigned ints
This commit is contained in:
parent
0d82534b09
commit
d3526c4e13
@ -57,7 +57,7 @@ int run(char *filename) {
|
|||||||
|
|
||||||
lc = 0;
|
lc = 0;
|
||||||
char pc = '\0';
|
char pc = '\0';
|
||||||
for (int i = 0; i < offset; i++) {
|
for (int i = 0; (unsigned)i < offset; i++) {
|
||||||
c = buf[i];
|
c = buf[i];
|
||||||
|
|
||||||
if (pc == '\n' || i == 0) {
|
if (pc == '\n' || i == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user