More clean up
[yaffs2.git] / direct / yaffsfs.c
index 87d9980cf9a91095a7352eed02117ee787dd3cfa..eaf30808862179807c9540445e3d62ad6fdcc07b 100644 (file)
@@ -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);