mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-22 16:30:57 +01:00
result: Resolve sign-coversion warnings
The constructor was implicitly using signed->unsigned conversions to produce 0xFFFFFFFF. We can just specify this explicitly with UINT32_MAX.
This commit is contained in:
parent
19a0abc19b
commit
27ab99490e
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ class ResultVal {
|
||||||
public:
|
public:
|
||||||
/// Constructs an empty `ResultVal` with the given error code. The code must not be a success
|
/// Constructs an empty `ResultVal` with the given error code. The code must not be a success
|
||||||
/// code.
|
/// code.
|
||||||
ResultVal(ResultCode error_code = ResultCode(-1)) : result_code(error_code) {
|
ResultVal(ResultCode error_code = ResultCode(UINT32_MAX)) : result_code(error_code) {
|
||||||
ASSERT(error_code.IsError());
|
ASSERT(error_code.IsError());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue