From 4bac356df6e2e0603c0129df577e4e08a2fd646d Mon Sep 17 00:00:00 2001 From: chinhodado Date: Fri, 14 Nov 2014 16:13:06 -0500 Subject: [PATCH] Use const --- Common/x64Emitter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/x64Emitter.h b/Common/x64Emitter.h index 5e831f7f71..09d15584de 100644 --- a/Common/x64Emitter.h +++ b/Common/x64Emitter.h @@ -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;