]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - fs/fat/fat.c
linux/kernel.h: sync min, max, min3, max3 macros with Linux
[karo-tx-uboot.git] / fs / fat / fat.c
index 561921fa2d364e548629fe8152cb953861699b3f..0481de3eb029decb4c0b58ef98229c7d7b2b8993 100644 (file)
@@ -364,7 +364,7 @@ get_contents(fsdata *mydata, dir_entry *dentptr, unsigned long pos,
 
        /* align to beginning of next cluster if any */
        if (pos) {
-               actsize = min(filesize, bytesperclust);
+               actsize = min(filesize, (unsigned long)bytesperclust);
                if (get_cluster(mydata, curclust, get_contents_vfatname_block,
                                (int)actsize) != 0) {
                        printf("Error reading cluster\n");