summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-06-21 21:27:25 +0200
committerGitHub <noreply@github.com>2019-06-21 21:27:25 +0200
commit69e490b303c74bff86de262d2fc92d9c741a852e (patch)
treeda15d661161c9b13e9cb0a64200d9f5b2d8edef7 /src/core
parentMerge pull request #2575 from DarkLordZach/process-id-types (diff)
parentservice/acc: Silence truncation warnings (diff)
downloadyuzu-69e490b303c74bff86de262d2fc92d9c741a852e.tar
yuzu-69e490b303c74bff86de262d2fc92d9c741a852e.tar.gz
yuzu-69e490b303c74bff86de262d2fc92d9c741a852e.tar.bz2
yuzu-69e490b303c74bff86de262d2fc92d9c741a852e.tar.lz
yuzu-69e490b303c74bff86de262d2fc92d9c741a852e.tar.xz
yuzu-69e490b303c74bff86de262d2fc92d9c741a852e.tar.zst
yuzu-69e490b303c74bff86de262d2fc92d9c741a852e.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/acc/acc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/acc/acc.cpp b/src/core/hle/service/acc/acc.cpp
index 025714e5a..0cd8158df 100644
--- a/src/core/hle/service/acc/acc.cpp
+++ b/src/core/hle/service/acc/acc.cpp
@@ -94,7 +94,7 @@ private:
LOG_WARNING(Service_ACC,
"Failed to load user provided image! Falling back to built-in backup...");
ctx.WriteBuffer(Core::Constants::ACCOUNT_BACKUP_JPEG);
- rb.Push<u32>(Core::Constants::ACCOUNT_BACKUP_JPEG.size());
+ rb.Push(SanitizeJPEGSize(Core::Constants::ACCOUNT_BACKUP_JPEG.size()));
return;
}
@@ -116,9 +116,9 @@ private:
if (!image.IsOpen()) {
LOG_WARNING(Service_ACC,
"Failed to load user provided image! Falling back to built-in backup...");
- rb.Push<u32>(Core::Constants::ACCOUNT_BACKUP_JPEG.size());
+ rb.Push(SanitizeJPEGSize(Core::Constants::ACCOUNT_BACKUP_JPEG.size()));
} else {
- rb.Push<u32>(SanitizeJPEGSize(image.GetSize()));
+ rb.Push(SanitizeJPEGSize(image.GetSize()));
}
}