Skip to content

Commit

Permalink
fix type of mode
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Sep 30, 2016
1 parent 00c034d commit b6133a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xbyak/xbyak.h
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ inline RegExp operator-(const RegExp& e, size_t disp)
}

// 2nd parameter for constructor of CodeArray(maxSize, userPtr, alloc)
void *const AutoGrow = (void*)1;
const void *const AutoGrow = (void*)1;

class CodeArray {
enum Type {
Expand Down Expand Up @@ -1974,7 +1974,7 @@ class CodeGenerator : public CodeArray {
xx_xy_yz ; mode = true
xx_xy_xz ; mode = false
*/
void opVmov(const Operand& op, const Xmm& x, int type, uint8 code, int mode)
void opVmov(const Operand& op, const Xmm& x, int type, uint8 code, bool mode)
{
if (mode) {
if (!op.isMEM() && !((op.isXMM() && x.isXMM()) || (op.isXMM() && x.isYMM()) || (op.isYMM() && x.isZMM()))) throw Error(ERR_BAD_COMBINATION);
Expand Down

0 comments on commit b6133a0

Please sign in to comment.