aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShav Kinderlehrer <[email protected]>2023-04-10 14:57:12 -0400
committerShav Kinderlehrer <[email protected]>2023-04-10 14:57:12 -0400
commitd3526c4e13202b193587e54f903d51bf8e8af15f (patch)
tree64f92a830c8236583862633133b5f67d523ba670
parent0d82534b0999c75385f782e9ffea5491cf9b40a0 (diff)
downloadlat-d3526c4e13202b193587e54f903d51bf8e8af15f.tar.gz
lat-d3526c4e13202b193587e54f903d51bf8e8af15f.zip
Fix bugv0.0.1
- comparison of signed and unsigned ints
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 6d7dd6d..8fa5e7f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -57,7 +57,7 @@ int run(char *filename) {
lc = 0;
char pc = '\0';
- for (int i = 0; i < offset; i++) {
+ for (int i = 0; (unsigned)i < offset; i++) {
c = buf[i];
if (pc == '\n' || i == 0) {