Skip to content
Snippets Groups Projects
Commit 6e380811 authored by Subv's avatar Subv
Browse files

ResultCode: Mark any error code that isn't 0 as an error.

parent 65f31190
No related branches found
No related tags found
No related merge requests found
...@@ -108,11 +108,11 @@ union ResultCode { ...@@ -108,11 +108,11 @@ union ResultCode {
} }
constexpr bool IsSuccess() const { constexpr bool IsSuccess() const {
return is_error.ExtractValue(raw) == 0; return raw == 0;
} }
constexpr bool IsError() const { constexpr bool IsError() const {
return is_error.ExtractValue(raw) == 1; return raw != 0;
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment