projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More clean up
[yaffs2.git]
/
direct
/
yaffsfs.c
diff --git
a/direct/yaffsfs.c
b/direct/yaffsfs.c
index 87d9980cf9a91095a7352eed02117ee787dd3cfa..eaf30808862179807c9540445e3d62ad6fdcc07b 100644
(file)
--- 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;
else
maxRead = 0;
- if (nbyte > maxRead)
+ if (
(Y_LOFF_T)
nbyte > maxRead)
nbyte = maxRead;
yaffsfs_GetHandle(handle);
nbyte = maxRead;
yaffsfs_GetHandle(handle);