[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 5/9] ext2fs: fix compiler warning
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 5/9] ext2fs: fix compiler warning |
Date: |
Fri, 6 Jun 2014 17:28:09 +0200 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Fri 06 Jun 2014 16:42:14 +0200, a écrit :
> * ext2fs/pager.c (disk_cache_block_ref): block cannot be negative.
Ack.
> ---
> 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
>
--
Samuel
<S> KK1 a 1 conseil de comment s'attaquer a du code java ou ya plus de 50
classes ? par kel bout ?
<B> le troisième
-+- #ens-mim en stage -+-
- [PATCH 1/9] include: use unsigned literal in combination with binary not, Justus Winter, 2014/06/06
- [PATCH 4/9] libdiskfs: avoid implicit integer conversion, Justus Winter, 2014/06/06
- [PATCH 2/9] hurd: fix type of optimal_transfer_size, Justus Winter, 2014/06/06
- [PATCH 5/9] ext2fs: fix compiler warning, Justus Winter, 2014/06/06
- Re: [PATCH 5/9] ext2fs: fix compiler warning,
Samuel Thibault <=
- [PATCH 6/9] ext2fs: use correct type for disk offsets, Justus Winter, 2014/06/06
- [PATCH 8/9] ext2fs: fix type of blockaddr, Justus Winter, 2014/06/06
- [PATCH 7/9] ext2fs: use size_t where appropriate, Justus Winter, 2014/06/06
- [PATCH 3/9] libdiskfs: use correct type for disk offsets, Justus Winter, 2014/06/06
- [PATCH 9/9] ext2fs: fix type of retry_dotdot, Justus Winter, 2014/06/06