From ea294e2a51a8de3daf27e0cf2aa57142bf4b0850 Mon Sep 17 00:00:00 2001 From: gkostka Date: Tue, 24 May 2016 09:27:05 +0200 Subject: [PATCH 1/1] ext4_journal: fix trans_id_diff return value --- src/ext4_journal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ext4_journal.c b/src/ext4_journal.c index c68d5a1..099a977 100644 --- a/src/ext4_journal.c +++ b/src/ext4_journal.c @@ -107,7 +107,7 @@ static inline int32_t trans_id_diff(uint32_t x, uint32_t y) { int32_t diff = x - y; - return (diff >= 0); + return diff; } static int -- 2.30.2