diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> | 2017-10-19 20:24:54 +0200 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2017-10-23 13:24:34 -0400 |
commit | ce97c27422e17263f2e31dbda11b4dc963e2a14a (patch) | |
tree | b21401630afd81317ec5c684e6f4dc3d7c450491 /app-i18n/mozc/files | |
parent | app-backup/flexbackup: amd64 stable, bug 635042 (diff) | |
download | gentoo-ce97c27422e17263f2e31dbda11b4dc963e2a14a.tar.gz gentoo-ce97c27422e17263f2e31dbda11b4dc963e2a14a.tar.bz2 gentoo-ce97c27422e17263f2e31dbda11b4dc963e2a14a.zip |
app-i18n/mozc: Fix building with GCC <6 (bug #634014).
Bug: https://bugs.gentoo.org/634014
Diffstat (limited to 'app-i18n/mozc/files')
-rw-r--r-- | app-i18n/mozc/files/mozc-2.20.2673.102-gcc-5.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app-i18n/mozc/files/mozc-2.20.2673.102-gcc-5.patch b/app-i18n/mozc/files/mozc-2.20.2673.102-gcc-5.patch new file mode 100644 index 000000000000..b8b2bf1808ec --- /dev/null +++ b/app-i18n/mozc/files/mozc-2.20.2673.102-gcc-5.patch @@ -0,0 +1,11 @@ +--- /src/prediction/user_history_predictor.cc ++++ /src/prediction/user_history_predictor.cc +@@ -841,7 +841,7 @@ + // swap. + if (i + 1 < prefix.size()) { + string swapped_prefix = prefix; +- swap(swapped_prefix[i], swapped_prefix[i + 1]); ++ std::swap(swapped_prefix[i], swapped_prefix[i + 1]); + if (Util::StartsWith(str, swapped_prefix)) { + return true; + } |