Skip to content

Commit

Permalink
Fixed a mistake.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickyc975 committed Jun 1, 2020
1 parent d37e2f3 commit ee4a070
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/objects/VSBoolObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ VSObject *vs_bool_lt(VSObject *self, VSObject *const *args, vs_size_t nargs) {
terminate(TERM_ERROR);
}

VSObject *that = args[1];
VSObject *that = args[0];
ENSURE_TYPE(self, T_BOOL, "bool.__lt__()");
ENSURE_TYPE(that, T_BOOL, "bool.__lt__()");

Expand All @@ -80,7 +80,7 @@ VSObject *vs_bool_gt(VSObject *self, VSObject *const *args, vs_size_t nargs) {
terminate(TERM_ERROR);
}

VSObject *that = args[1];
VSObject *that = args[0];
ENSURE_TYPE(self, T_BOOL, "bool.__gt__()");
ENSURE_TYPE(that, T_BOOL, "bool.__gt__()");

Expand All @@ -94,7 +94,7 @@ VSObject *vs_bool_le(VSObject *self, VSObject *const *args, vs_size_t nargs) {
terminate(TERM_ERROR);
}

VSObject *that = args[1];
VSObject *that = args[0];
ENSURE_TYPE(self, T_BOOL, "bool.__le__()");
ENSURE_TYPE(that, T_BOOL, "bool.__le__()");

Expand All @@ -108,7 +108,7 @@ VSObject *vs_bool_ge(VSObject *self, VSObject *const *args, vs_size_t nargs) {
terminate(TERM_ERROR);
}

VSObject *that = args[1];
VSObject *that = args[0];
ENSURE_TYPE(self, T_BOOL, "bool.__ge__()");
ENSURE_TYPE(that, T_BOOL, "bool.__ge__()");

Expand All @@ -122,7 +122,7 @@ VSObject *vs_bool_eq(VSObject *self, VSObject *const *args, vs_size_t nargs) {
terminate(TERM_ERROR);
}

VSObject *that = args[1];
VSObject *that = args[0];
ENSURE_TYPE(self, T_BOOL, "bool.__eq__()");
ENSURE_TYPE(that, T_BOOL, "bool.__eq__()");

Expand Down Expand Up @@ -171,7 +171,7 @@ VSObject *vs_bool_and(VSObject *self, VSObject *const *args, vs_size_t nargs) {
terminate(TERM_ERROR);
}

VSObject *that = args[1];
VSObject *that = args[0];
ENSURE_TYPE(self, T_BOOL, "bool.__and__()");
ENSURE_TYPE(that, T_BOOL, "bool.__and__()");

Expand All @@ -185,7 +185,7 @@ VSObject *vs_bool_or(VSObject *self, VSObject *const *args, vs_size_t nargs) {
terminate(TERM_ERROR);
}

VSObject *that = args[1];
VSObject *that = args[0];
ENSURE_TYPE(self, T_BOOL, "bool.__or__()");
ENSURE_TYPE(that, T_BOOL, "bool.__or__()");

Expand All @@ -199,7 +199,7 @@ VSObject *vs_bool_xor(VSObject *self, VSObject *const *args, vs_size_t nargs) {
terminate(TERM_ERROR);
}

VSObject *that = args[1];
VSObject *that = args[0];
ENSURE_TYPE(self, T_BOOL, "bool.__xor__()");
ENSURE_TYPE(that, T_BOOL, "bool.__xor__()");

Expand Down

0 comments on commit ee4a070

Please sign in to comment.