From f4cbb762c22120be94a4046b691873fd237e6aa3 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Mon, 17 Dec 2007 11:41:36 +0100 Subject: Explicitly cast ext2_off_t to (signed) int32_t --- tail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit