Commit cb88ef62 authored by Ark M. Degtiarov's avatar Ark M. Degtiarov Committed by Kenton Varda

Fix for build failure with gcc v5.00

parent ee7c1b0c
......@@ -607,7 +607,7 @@ bool InterfaceSchema::extends(InterfaceSchema other) const {
bool InterfaceSchema::extends(InterfaceSchema other, uint& counter) const {
// Security: Don't let someone DOS us with a dynamic schema containing cyclic inheritance.
KJ_REQUIRE(counter++ < MAX_SUPERCLASSES, "Cyclic or absurdly-large inheritance graph detected.") {
return nullptr;
return false;
}
if (other == *this) {
......
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