From: asterix Date: Mon, 26 May 2008 09:18:47 +0000 (+0000) Subject: Cast the variable to corret size type. X-Git-Tag: 2.0.0~579 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=2344f8c3a87e9049fb690f198c24213101c22d7b;p=bertos.git Cast the variable to corret size type. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1355 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/fs/battfs.c b/bertos/fs/battfs.c index fd8fe1c6..ff955df0 100644 --- a/bertos/fs/battfs.c +++ b/bertos/fs/battfs.c @@ -628,7 +628,7 @@ static size_t battfs_read(struct KFile *fd, void *_buf, size_t size) pgaddr_t addr_offset; pgaddr_t read_len; - size = MIN(size, fd->size - fd->seek_pos); + size = MIN((kfile_size_t)size, fd->size - fd->seek_pos); while (size) {