X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fyaffsfs.c;h=eaf30808862179807c9540445e3d62ad6fdcc07b;hp=87d9980cf9a91095a7352eed02117ee787dd3cfa;hb=refs%2Fheads%2Fclean-up;hpb=b295567b94e6d4014938e42e978306a13b330bb3 diff --git a/direct/yaffsfs.c b/direct/yaffsfs.c index 87d9980..eaf3080 100644 --- a/direct/yaffsfs.c +++ b/direct/yaffsfs.c @@ -1174,7 +1174,7 @@ static int yaffsfs_do_read(int handle, void *vbuf, unsigned int nbyte, else maxRead = 0; - if (nbyte > maxRead) + if ((Y_LOFF_T)nbyte > maxRead) nbyte = maxRead; yaffsfs_GetHandle(handle);