fix compile warnings of rom_stream.c (trivial)
[coreboot.git] / src / stream / rom_stream.c
index 39bae75b5b526338e79dbf6845f3789eb1958edf..4386649c95b82a28bd9d7c3cb21639b49a5fc7e7 100644 (file)
@@ -80,8 +80,8 @@ int stream_init(void)
 #if _RAMBASE<0x00100000
        olen = *(unsigned int *)dest;
 #if (CONFIG_CONSOLE_VGA==1) || (CONFIG_PCI_ROM_RUN == 1)
-       if((dest < 0xa0000) && ((dest+olen)>0xa0000)) {
-               dest = (CONFIG_LB_MEM_TOPK<<10);
+       if((dest < (unsigned char *)0xa0000) && ((dest+olen)>(unsigned char *)0xa0000)) {
+               dest = (unsigned char *)(CONFIG_LB_MEM_TOPK<<10);
        }
 #endif
         if((dest < (unsigned char *) 0xf0000) && ((dest+olen)> (unsigned char *)0xf0000)) { // coreboot tables etc