]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/blackfin/cpu/jtag-console.c
linux/kernel.h: sync min, max, min3, max3 macros with Linux
[people/ms/u-boot.git] / arch / blackfin / cpu / jtag-console.c
index b8be3182a0906ff309ff8cb3ccc744b95fe8d21a..b0abeda90aec71025aa8568426bc93b7620d28bc 100644 (file)
@@ -168,7 +168,7 @@ static int jtag_getc(struct stdio_dev *dev)
                inbound_len = emudat;
        } else {
                /* store the bytes */
-               leftovers_len = min(4, inbound_len);
+               leftovers_len = min((size_t)4, inbound_len);
                inbound_len -= leftovers_len;
                leftovers = emudat;
        }