summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Subv2018-02-19 00:30:30 -0500
committerGravatar Subv2018-02-27 09:44:35 -0500
commit6e38081165f6180180f824fa1864605ec4db1614 (patch)
tree3fc5a2ecf4d993d178a24e8854e2d5b47e9079c6 /src
parentRemoves the use of QKeySequence::Cancel (#186) (diff)
downloadyuzu-6e38081165f6180180f824fa1864605ec4db1614.tar.gz
yuzu-6e38081165f6180180f824fa1864605ec4db1614.tar.xz
yuzu-6e38081165f6180180f824fa1864605ec4db1614.zip
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 {
108 } 108 }
109 109
110 constexpr bool IsSuccess() const { 110 constexpr bool IsSuccess() const {
111 return is_error.ExtractValue(raw) == 0; 111 return raw == 0;
112 } 112 }
113 113
114 constexpr bool IsError() const { 114 constexpr bool IsError() const {
115 return is_error.ExtractValue(raw) == 1; 115 return raw != 0;
116 } 116 }
117}; 117};
118 118