Use const

This commit is contained in:
chinhodado 2014-11-14 16:13:06 -05:00
parent ff97421470
commit 4bac356df6

View File

@ -167,7 +167,7 @@ struct OpArg
//if scale == 0 never mind offsetting
offset = _offset;
}
bool operator==(OpArg b)
bool operator==(const OpArg &b) const
{
return operandReg == b.operandReg && scale == b.scale && offsetOrBaseReg == b.offsetOrBaseReg &&
indexReg == b.indexReg && offset == b.offset;