diff options
| author | 2019-11-13 06:50:49 -0500 | |
|---|---|---|
| committer | 2019-11-13 06:53:19 -0500 | |
| commit | 61f6eaad451652e779bb056786c1d6650d1fd7f5 (patch) | |
| tree | d45f94bdfb97abfdf84819b611a4564e432b48f6 | |
| parent | Merge pull request #3085 from bunnei/web-token-b64 (diff) | |
| download | yuzu-61f6eaad451652e779bb056786c1d6650d1fd7f5.tar.gz yuzu-61f6eaad451652e779bb056786c1d6650d1fd7f5.tar.xz yuzu-61f6eaad451652e779bb056786c1d6650d1fd7f5.zip | |
common_funcs: silence sign-conversion warnings in MakeMagic()
We can trivially resolve these by casting the characters to unsigned
values and then shifting the bits.
| -rw-r--r-- | src/common/common_funcs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h index c029dc7b3..6dc3e108f 100644 --- a/src/common/common_funcs.h +++ b/src/common/common_funcs.h | |||
| @@ -56,7 +56,7 @@ std::string GetLastErrorMsg(); | |||
| 56 | namespace Common { | 56 | namespace Common { |
| 57 | 57 | ||
| 58 | constexpr u32 MakeMagic(char a, char b, char c, char d) { | 58 | constexpr u32 MakeMagic(char a, char b, char c, char d) { |
| 59 | return a | b << 8 | c << 16 | d << 24; | 59 | return u32(a) | u32(b) << 8 | u32(c) << 16 | u32(d) << 24; |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | } // namespace Common | 62 | } // namespace Common |