summaryrefslogtreecommitdiff
path: root/debian/patches/0005-ext2fs-fix-compiler-warning.patch
blob: 43949a3ff09f4bda502d21e0eb476f7806bdb708 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 6ec540993675a4d0e60497c7788cb577a79028f8 Mon Sep 17 00:00:00 2001
From: Justus Winter <4winter@informatik.uni-hamburg.de>
Date: Wed, 4 Jun 2014 17:05:36 +0200
Subject: [PATCH 5/9] ext2fs: fix compiler warning

* ext2fs/pager.c (disk_cache_block_ref): block cannot be negative.
---
 ext2fs/pager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext2fs/pager.c b/ext2fs/pager.c
index ce5bc6d..39cf1c7 100644
--- a/ext2fs/pager.c
+++ b/ext2fs/pager.c
@@ -957,7 +957,7 @@ disk_cache_block_ref (block_t block)
   int index;
   void *bptr;
 
-  assert (0 <= block && block < store->size >> log2_block_size);
+  assert (block < store->size >> log2_block_size);
 
   ext2_debug ("(%u)", block);
 
-- 
2.0.0.rc2