From 20ffc03efaea79a74bdb82adb5be67a58afe2e64 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Fri, 1 Aug 2008 11:48:00 +0000 Subject: [PATCH] fix compile warnings of rom_stream.c (trivial) Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3450 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/stream/rom_stream.c | 4 ++-- 1 file 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