From aacc409159ac51966a1f90b38bfa7dace228a670 Mon Sep 17 00:00:00 2001 From: Fredrik Holmqvist Date: Sun, 30 Sep 2018 21:38:06 +0200 Subject: [PATCH] intel_extreme: use int cast to please the grumpy oldtimer gcc2 --- src/add-ons/kernel/drivers/graphics/intel_extreme/bios.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/drivers/graphics/intel_extreme/bios.cpp b/src/add-ons/kernel/drivers/graphics/intel_extreme/bios.cpp index 8421eec0df..d386f85da5 100644 --- a/src/add-ons/kernel/drivers/graphics/intel_extreme/bios.cpp +++ b/src/add-ons/kernel/drivers/graphics/intel_extreme/bios.cpp @@ -144,7 +144,7 @@ get_bios(void) kVBIOSAddress, vbios.memory)); int vbtOffset = vbios.ReadWord(kVbtPointer); - if ((vbtOffset + sizeof(vbt_header)) >= kVBIOSSize) { + if ((vbtOffset + (int)sizeof(vbt_header)) >= kVBIOSSize) { TRACE((DEVICE_NAME": bad VBT offset : 0x%x\n", vbtOffset)); delete_area(vbios.area); return false;