diff options
| author | 2018-08-12 13:31:15 +1000 | |
|---|---|---|
| committer | 2018-08-12 13:31:15 +1000 | |
| commit | a1fb8a331fde52279f18ae3fe3a57d7d88ff526d (patch) | |
| tree | a41888b91e86b2914a84910028dceb5407784a8b /src/core/loader/loader.cpp | |
| parent | Merge pull request #1022 from bunnei/fix-splat (diff) | |
| download | yuzu-a1fb8a331fde52279f18ae3fe3a57d7d88ff526d.tar.gz yuzu-a1fb8a331fde52279f18ae3fe3a57d7d88ff526d.tar.xz yuzu-a1fb8a331fde52279f18ae3fe3a57d7d88ff526d.zip | |
Fixed invalid cast in loader
GetMessageForResultStatus takes a u16, not a size_t.
Diffstat (limited to 'src/core/loader/loader.cpp')
| -rw-r--r-- | src/core/loader/loader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp index 2f5bfc67c..1f2f31535 100644 --- a/src/core/loader/loader.cpp +++ b/src/core/loader/loader.cpp | |||
| @@ -126,7 +126,7 @@ constexpr std::array<const char*, 36> RESULT_MESSAGES{ | |||
| 126 | }; | 126 | }; |
| 127 | 127 | ||
| 128 | std::string GetMessageForResultStatus(ResultStatus status) { | 128 | std::string GetMessageForResultStatus(ResultStatus status) { |
| 129 | return GetMessageForResultStatus(static_cast<size_t>(status)); | 129 | return GetMessageForResultStatus(static_cast<u16>(status)); |
| 130 | } | 130 | } |
| 131 | 131 | ||
| 132 | std::string GetMessageForResultStatus(u16 status) { | 132 | std::string GetMessageForResultStatus(u16 status) { |