projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cast to unsignet type.
[bertos.git]
/
bertos
/
drv
/
dataflash.c
diff --git
a/bertos/drv/dataflash.c
b/bertos/drv/dataflash.c
index cad2c610813ac1d054ac821a63e7001a9f15e8d6..f70628fb18cf52a1e6e9dc2f4ae6e5b677abb5d8 100644
(file)
--- a/
bertos/drv/dataflash.c
+++ b/
bertos/drv/dataflash.c
@@
-351,7
+351,7
@@
static size_t dataflash_read(struct KFile *_fd, void *buf, size_t size)
uint8_t *data = (uint8_t *)buf;
uint8_t *data = (uint8_t *)buf;
- ASSERT(fd->fd.seek_pos + size <= (kfile_
off
_t)fd->fd.size);
+ ASSERT(fd->fd.seek_pos + size <= (kfile_
size
_t)fd->fd.size);
size = MIN((kfile_size_t)size, fd->fd.size - fd->fd.seek_pos);
LOG_INFO("Reading at pos[%lu]\n", fd->fd.seek_pos);
size = MIN((kfile_size_t)size, fd->fd.size - fd->fd.seek_pos);
LOG_INFO("Reading at pos[%lu]\n", fd->fd.seek_pos);