Commit b4701534 authored by Boxiang Sun's avatar Boxiang Sun

Make GCC 5.4 happy with those type casting

GCC 5.4 will report those type castings are not legal.
parent ea8890e8
......@@ -260,7 +260,7 @@ private:
assert(name->vreg == -1);
// skip
} else {
RELEASE_ASSERT(0, "%d", name->lookup_type);
RELEASE_ASSERT(0, "%d", static_cast<int>(name->lookup_type));
}
break;
}
......
......@@ -351,7 +351,7 @@ CompiledFunction* compileFunction(FunctionMetadata* f, FunctionSpecialization* s
break;
}
default:
RELEASE_ASSERT(0, "%d", effort);
RELEASE_ASSERT(0, "%d", static_cast<int>(effort));
}
// free the bjit code if this is not a OSR compilation
......
......@@ -140,7 +140,7 @@ public:
void assertReturnConvention(ReturnConvention required_convention) {
assert(isSuccessful());
ASSERT(this->out_return_convention == required_convention, "user asked for convention %d but got %d",
required_convention, this->out_return_convention);
static_cast<int>(required_convention), static_cast<int>((this->out_return_convention)));
#ifndef NDEBUG
return_convention_checked = true;
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment