diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-06-04 02:20:35 +0200 |
---|---|---|
committer | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2023-06-05 21:15:23 +0200 |
commit | 63c51abe42c95b5248eb1a14ffbe295ac27b1a71 (patch) | |
tree | b290c8ec4f1212a1dc39fc1a78bd3c653828f0dc /src/core | |
parent | time_zone: Handle offset time zones (diff) | |
download | yuzu-63c51abe42c95b5248eb1a14ffbe295ac27b1a71.tar yuzu-63c51abe42c95b5248eb1a14ffbe295ac27b1a71.tar.gz yuzu-63c51abe42c95b5248eb1a14ffbe295ac27b1a71.tar.bz2 yuzu-63c51abe42c95b5248eb1a14ffbe295ac27b1a71.tar.lz yuzu-63c51abe42c95b5248eb1a14ffbe295ac27b1a71.tar.xz yuzu-63c51abe42c95b5248eb1a14ffbe295ac27b1a71.tar.zst yuzu-63c51abe42c95b5248eb1a14ffbe295ac27b1a71.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/time/time_zone_manager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/time/time_zone_manager.cpp b/src/core/hle/service/time/time_zone_manager.cpp index 5e507dff2..3d293d025 100644 --- a/src/core/hle/service/time/time_zone_manager.cpp +++ b/src/core/hle/service/time/time_zone_manager.cpp @@ -130,10 +130,10 @@ static constexpr int GetQZName(const char* name, int offset, char delimiter) { } static constexpr int GetTZName(const char* name, int offset) { - for (char value{name[offset]}; - value != '\0' && !IsDigit(value) && value != ',' && value != '-' && value != '+'; - offset++) { - value = name[offset]; + char c; + + while ((c = name[offset]) != '\0' && !IsDigit(c) && c != ',' && c != '-' && c != '+') { + ++offset; } return offset; } |