summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-02-19 00:30:30 -0500
committerSubv <subv2112@gmail.com>2018-02-27 09:44:35 -0500
commit6e38081165f6180180f824fa1864605ec4db1614 (patch)
tree3fc5a2ecf4d993d178a24e8854e2d5b47e9079c6 /src
parent65f3119074f4cb6a07af747b9c9d8445e08ccc50 (diff)
ResultCode: Mark any error code that isn't 0 as an error.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/result.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/result.h b/src/core/hle/result.h
index 656e1b4a7..97fef7a48 100644
--- a/src/core/hle/result.h
+++ b/src/core/hle/result.h
@@ -108,11 +108,11 @@ union ResultCode {
}
constexpr bool IsSuccess() const {
- return is_error.ExtractValue(raw) == 0;
+ return raw == 0;
}
constexpr bool IsError() const {
- return is_error.ExtractValue(raw) == 1;
+ return raw != 0;
}
};