Cast the variable to corret size type.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 26 May 2008 09:18:47 +0000 (09:18 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 26 May 2008 09:18:47 +0000 (09:18 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1355 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/fs/battfs.c

index fd8fe1c6761b6cabdbb5c65a4eac8bba894c05b3..ff955df004d16851af2a174dc45d00e51dae657e 100644 (file)
@@ -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)
        {