diff options
| author | 2018-02-19 00:30:30 -0500 | |
|---|---|---|
| committer | 2018-02-27 09:44:35 -0500 | |
| commit | 6e38081165f6180180f824fa1864605ec4db1614 (patch) | |
| tree | 3fc5a2ecf4d993d178a24e8854e2d5b47e9079c6 /src/core/hle/result.h | |
| parent | Removes the use of QKeySequence::Cancel (#186) (diff) | |
| download | yuzu-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/core/hle/result.h')
| -rw-r--r-- | src/core/hle/result.h | 4 |
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 | ||