summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tail.c b/tail.c
index 8f1a01c..3d9cde2 100644
--- a/tail.c
+++ b/tail.c
@@ -284,7 +284,7 @@ tail(ext2_filsys *fs_ptr, ext2_ino_t root, char *input, int num_lines,
bytes_to_read = BLK_SIZE;
offset -= bytes_to_read;
- if (offset < 0)
+ if (((int32_t)offset) < 0)
offset = 0;
do