[packages/vectorscan] - rel 2 - size_t may differ in sizem use static_cast instead of forcing a type size
baggins
baggins at pld-linux.org
Fri May 8 13:22:05 CEST 2026
commit 65b1c81721d0d16e2f2fe6b91728dc88f8eb5655
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri May 8 15:21:24 2026 +0200
- rel 2
- size_t may differ in sizem use static_cast instead of forcing a type size
size_t-type.patch | 11 +++++++++++
vectorscan.spec | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/vectorscan.spec b/vectorscan.spec
index d1d4eb7..242470b 100644
--- a/vectorscan.spec
+++ b/vectorscan.spec
@@ -2,12 +2,13 @@ Summary: High-performance regular expression matching library
Summary(pl.UTF-8): Biblioteka szybkiego dopasowywania wyrażeń regularnych
Name: vectorscan
Version: 5.4.12
-Release: 1
+Release: 2
License: BSD
Group: Libraries
Source0: https://github.com/VectorCamp/vectorscan/archive/vectorscan/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 384eab5b23831993df96e5fa55f9951e
Patch0: %{name}-pkgconfig.patch
+Patch1: size_t-type.patch
URL: https://github.com/VectorCamp/vectorscan
BuildRequires: boost-devel
BuildRequires: cmake >= 3.0
@@ -57,6 +58,7 @@ Statyczna biblioteka Vectorscan.
%prep
%setup -q -n %{name}-%{name}-%{version}
%patch -P0 -p1
+%patch -P1 -p1
%build
install -d build
diff --git a/size_t-type.patch b/size_t-type.patch
new file mode 100644
index 0000000..2d406cc
--- /dev/null
+++ b/size_t-type.patch
@@ -0,0 +1,11 @@
+--- vectorscan-vectorscan-5.4.12/src/fdr/fdr_engine_description.cpp~ 2026-05-08 15:13:31.000000000 +0200
++++ vectorscan-vectorscan-5.4.12/src/fdr/fdr_engine_description.cpp 2026-05-08 15:19:39.180015099 +0200
+@@ -71,7 +71,7 @@
+ } else if (num_lits < 5000) {
+ // for larger but not huge sizes, go to stride 2 only if we have at
+ // least minlen 3
+- desiredStride = std::min(min_len - 1, 2UL);
++ desiredStride = std::min(min_len - 1, static_cast<size_t>(2));
+ }
+ }
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/vectorscan.git/commitdiff/65b1c81721d0d16e2f2fe6b91728dc88f8eb5655
More information about the pld-cvs-commit
mailing list