summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2007-12-17 11:41:36 +0100
committerHans Ulrich Niedermann <hun@n-dimensional.de>2007-12-17 11:41:36 +0100
commitf4cbb762c22120be94a4046b691873fd237e6aa3 (patch)
tree8b46ded8193f06b382dc5a26a01f4f7919236eac
parent9893fc297b6437a9eb67cdf2cd74c8a38d57527b (diff)
downloade2tools-f4cbb762c22120be94a4046b691873fd237e6aa3.tar.gz
e2tools-f4cbb762c22120be94a4046b691873fd237e6aa3.tar.xz
e2tools-f4cbb762c22120be94a4046b691873fd237e6aa3.zip
Explicitly cast ext2_off_t to (signed) int32_t
-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