From 27ab99490e1eea0ce56e591b000bc02592ac8a60 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 12 Nov 2019 04:07:23 -0500 Subject: 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. --- src/core/hle/result.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/core/hle/result.h b/src/core/hle/result.h index 8a3701151..500ea882c 100644 --- a/src/core/hle/result.h +++ b/src/core/hle/result.h @@ -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()); } -- cgit v1.2.3