fix(libSceAppContent): compare the download2 quota through its own 64-bit type #15755
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15755"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by imellag on 2026-11-04T12:34:46Z.
What
sceAppContentDownload2Expand(6122c5c42f) keeps the quota in astd::atomic<std::uint64_t>and reads it into asize_tbeforecompare_exchange_weak(current, size). On macOSsize_tisunsigned longandstd::uint64_tisunsigned long long, so the expected value cannot bind to the atomic'sunsigned long long&and libc++ rejects the call:currentnow has the atomic's own type. On Linux and Windows both names are the same 64-bit type, so nothing changes there.Tested
macOS 27.2, Apple M4 Pro, x86-64 Release under Rosetta 2.
maindoesn't build on macOS on its own, so this was built in the support branchsupport/macos-boot-1103merged withmainb11c7bf84f(the open macOS port PRs #7631, #7804, #4630, #11437 and local build fixes). Without this commit the full build stops atExport.cpp:341. With it, #15700 and #15756 (two other macOS build stops that reachedmaintoday) the full build goes through, andctest -R '^(guest_appcontent|guest_np_common_rtc|guest_np_common_state_predicates)'passes 9 of 9.tools/check_conventions.py --base upstream/mainpasses, andtools/pr_overlap.pyfinds no overlap.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)