mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-12-26 07:45:32 +00:00
Merge pull request #3103 from lioncash/cfunc
common_funcs: silence sign-conversion warnings in MakeMagic()
This commit is contained in:
commit
cc9e682021
|
@ -56,7 +56,7 @@ std::string GetLastErrorMsg();
|
||||||
namespace Common {
|
namespace Common {
|
||||||
|
|
||||||
constexpr u32 MakeMagic(char a, char b, char c, char d) {
|
constexpr u32 MakeMagic(char a, char b, char c, char d) {
|
||||||
return a | b << 8 | c << 16 | d << 24;
|
return u32(a) | u32(b) << 8 | u32(c) << 16 | u32(d) << 24;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Common
|
} // namespace Common
|
||||||
|
|
Loading…
Reference in a new issue