X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_getblockinfo.h;h=09b5a166fc9be9b31c76ccbfd345f33b4bc93cb8;hp=d87acbde997cf741996eec715f4579bc4802294b;hb=5bc32d099123b2e0e5f27f7421caa5413d3211f0;hpb=5062df7307f71d3374da87a7c69102dc3f09da28 diff --git a/yaffs_getblockinfo.h b/yaffs_getblockinfo.h index d87acbd..09b5a16 100644 --- a/yaffs_getblockinfo.h +++ b/yaffs_getblockinfo.h @@ -1,7 +1,7 @@ /* * YAFFS: Yet another Flash File System . A NAND-flash specific file system. * - * Copyright (C) 2002-2010 Aleph One Ltd. + * Copyright (C) 2002-2011 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by Charles Manning @@ -23,11 +23,12 @@ static inline struct yaffs_block_info *yaffs_get_block_info(struct yaffs_dev *dev, int blk) { - if (blk < dev->internal_start_block || blk > dev->internal_end_block) { + if (blk < (int)dev->internal_start_block || + blk > (int)dev->internal_end_block) { yaffs_trace(YAFFS_TRACE_ERROR, "**>> yaffs: get_block_info block %d is not valid", blk); - YBUG(); + BUG(); } return &dev->block_info[blk - dev->internal_start_block]; }