summaryrefslogtreecommitdiff
path: root/src/common/string_util.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2018-09-25 18:06:35 -0400
committerGravatar Lioncash2018-09-25 20:06:21 -0400
commitf646ca874d8589f4be4a7e6bcce69301e60b24f3 (patch)
tree37a61ccfed8e5ae65803022133989b96dc92c9bb /src/common/string_util.cpp
parentyuzu/main: Move functions stored into static std::function instances out of O... (diff)
downloadyuzu-f646ca874d8589f4be4a7e6bcce69301e60b24f3.tar.gz
yuzu-f646ca874d8589f4be4a7e6bcce69301e60b24f3.tar.xz
yuzu-f646ca874d8589f4be4a7e6bcce69301e60b24f3.zip
yuzu/main: Resolve precedence bug within CalculateRomFSEntrySize()
Ternary operators have a lower precedence than arithmetic operators, so what was actually occurring here is "return (out + full) ? x : y" which most definitely isn't intended, given we calculate out recursively above. We were essentially doing a lot of work for nothing.
Diffstat (limited to 'src/common/string_util.cpp')
0 files changed, 0 insertions, 0 deletions