X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_getblockinfo.h;h=09b5a166fc9be9b31c76ccbfd345f33b4bc93cb8;hp=8fd0802bdddbfc4721eb1b29effd099c472710fb;hb=5bc32d099123b2e0e5f27f7421caa5413d3211f0;hpb=d7388fb75a13610d14d0afc397f826bd44c972e1 diff --git a/yaffs_getblockinfo.h b/yaffs_getblockinfo.h index 8fd0802..09b5a16 100644 --- a/yaffs_getblockinfo.h +++ b/yaffs_getblockinfo.h @@ -23,7 +23,8 @@ 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);