diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/stream/rom_stream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stream/rom_stream.c b/src/stream/rom_stream.c index 39bae75b5b..4386649c95 100644 --- a/src/stream/rom_stream.c +++ b/src/stream/rom_stream.c @@ -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 |