aspell/core: pull in upstream fix for llvm-19 build failure

This commit is contained in:
tb
2025-01-27 16:23:29 +00:00
parent 3350e431a8
commit 7d545fed97
2 changed files with 17 additions and 0 deletions
+1
View File
@@ -3,6 +3,7 @@ COMMENT= spell checker with multi-language support
DISTNAME= aspell-0.60.8.1
DIST_SUBDIR= aspell
CATEGORIES= textproc
REVISION= 0
SHARED_LIBS += aspell 18.1 # .18.1
SHARED_LIBS += pspell 17.0 # .18.1
@@ -0,0 +1,16 @@
Fix build with llvm-19
https://github.com/GNUAspell/aspell/pull/650
Index: modules/speller/default/vector_hash-t.hpp
--- modules/speller/default/vector_hash-t.hpp.orig
+++ modules/speller/default/vector_hash-t.hpp
@@ -183,7 +183,7 @@ namespace aspeller {
template<class Parms>
void VectorHashTable<Parms>::recalc_size() {
size_ = 0;
- for (iterator i = begin(); i != this->e; ++i, ++this->_size);
+ for (iterator i = begin(), e = end(); i != e; ++i, ++size_);
}
}