From 2344f8c3a87e9049fb690f198c24213101c22d7b Mon Sep 17 00:00:00 2001 From: asterix Date: Mon, 26 May 2008 09:18:47 +0000 Subject: [PATCH] Cast the variable to corret size type. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1355 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/fs/battfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.25.1