From: asterix Date: Mon, 16 Jun 2008 17:08:50 +0000 (+0000) Subject: Cast to unsignet type. X-Git-Tag: 2.0.0~468 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=ba59da50a88c6a607ea573c9306bae399ffecabd;p=bertos.git Cast to unsignet type. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1466 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/drv/dataflash.c b/bertos/drv/dataflash.c index cad2c610..f70628fb 100644 --- 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; - 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);