mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-11 19:28:05 -05: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:
@ -183,7 +183,7 @@ class ResultVal {
|
||||
public:
|
||||
/// Constructs an empty `ResultVal` with the given error code. The code must not be a success
|
||||
/// 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());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user