From 168e20681213b44766f36683afde8f1c105cbe59 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 1 Dec 2009 17:33:30 -0700 Subject: [PATCH] fix GCC 3.4 build --- src/compiler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler.cpp b/src/compiler.cpp index c666c252ec..5721683799 100644 --- a/src/compiler.cpp +++ b/src/compiler.cpp @@ -2156,7 +2156,8 @@ class MemorySite: public Site { virtual SiteMask mask(Context* c) { return SiteMask(1 << MemoryOperand, 0, (base == c->arch->stack()) - ? offsetToFrameIndex(c, offset) : NoFrameIndex); + ? static_cast(offsetToFrameIndex(c, offset)) + : NoFrameIndex); } virtual SiteMask nextWordMask(Context* c, unsigned index) {