summaryrefslogtreecommitdiffstats
path: root/src/core/hle/result.h
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-02-19 06:30:30 +0100
committerSubv <subv2112@gmail.com>2018-02-27 15:44:35 +0100
commit6e38081165f6180180f824fa1864605ec4db1614 (patch)
tree3fc5a2ecf4d993d178a24e8854e2d5b47e9079c6 /src/core/hle/result.h
parentRemoves the use of QKeySequence::Cancel (#186) (diff)
downloadyuzu-6e38081165f6180180f824fa1864605ec4db1614.tar
yuzu-6e38081165f6180180f824fa1864605ec4db1614.tar.gz
yuzu-6e38081165f6180180f824fa1864605ec4db1614.tar.bz2
yuzu-6e38081165f6180180f824fa1864605ec4db1614.tar.lz
yuzu-6e38081165f6180180f824fa1864605ec4db1614.tar.xz
yuzu-6e38081165f6180180f824fa1864605ec4db1614.tar.zst
yuzu-6e38081165f6180180f824fa1864605ec4db1614.zip
Diffstat (limited to 'src/core/hle/result.h')
-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;
}
};