You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-i18n/mozc/files/mozc-2.23.2815.102-gcc-8.patch

23 lines
496 B

https://github.com/google/mozc/issues/441
--- /src/prediction/zero_query_dict.h
+++ /src/prediction/zero_query_dict.h
@@ -147,6 +147,17 @@
return iter;
}
+ iterator &operator--() {
+ ptr_ -= kTokenByteSize;
+ return *this;
+ }
+
+ iterator operator--(int) {
+ const iterator tmp(ptr_, string_array_);
+ ptr_ -= kTokenByteSize;
+ return tmp;
+ }
+
iterator &operator-=(ptrdiff_t n) {
ptr_ -= n * kTokenByteSize;
return *this;