Use explicit break and do not coerce 0 into bool in AssemblyItem

This commit is contained in:
Alex Beregszaszi
2018-12-19 12:35:00 +00:00
parent 8875092073
commit 517beb6fa6
+5 -3
View File
@@ -110,7 +110,8 @@ int AssemblyItem::returnValues() const
return 1;
case Tag:
return 0;
default:;
default:
break;
}
return 0;
}
@@ -135,9 +136,10 @@ bool AssemblyItem::canBeFunctional() const
return true;
case Tag:
return false;
default:;
default:
break;
}
return 0;
return false;
}
string AssemblyItem::getJumpTypeAsString() const