Skip to content
Commits on Source (2)
From: Michael R. Crusoe <michael.crusoe@gmail.com>
Subject: fix 32bit compatibility
Forwarded: https://github.com/seqan/lambda/pull/123
--- lambda-align2.orig/src/search_algo.hpp
+++ lambda-align2/src/search_algo.hpp
@@ -1058,7 +1058,7 @@
desiredOccs = (length(lH.matches) - oldTotalMatches) >= lH.options.maxMatches
? minResults
: (lH.options.maxMatches - (length(lH.matches) - oldTotalMatches)) * seedHeurFactor /
- std::max((needlesSum - needlesPos - seedBegin) / lH.options.seedOffset, 1ul);
+ std::max((needlesSum - needlesPos - seedBegin) / lH.options.seedOffset, static_cast<size_t>(1));
if (desiredOccs == 0)
desiredOccs = minResults;
@@ -1127,7 +1127,7 @@
desiredOccs = (length(lH.matches) - oldTotalMatches) >= lH.options.maxMatches
? minResults
: (lH.options.maxMatches - (length(lH.matches) - oldTotalMatches)) * seedHeurFactor /
- std::max((needlesSum - needlesPos - seedBegin) / lH.options.seedOffset, 1ul);
+ std::max((needlesSum - needlesPos - seedBegin) / lH.options.seedOffset, static_cast<size_t>(1));
if (desiredOccs == 0)
desiredOccs = minResults;
enable_tests
32bit
set-seqan-cmake-dir.patch
force-link-rt-pthread.patch
......@@ -11,7 +11,7 @@ cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON \
for binary in $(dpkg -L lambda-align2 | grep bin/); do ln -s ${binary} bin/; done
cd tests
set +e
ctest --parallel $(nproc) -I 1,10 && RESULT=$?
ctest --parallel $(nproc) -I 1,10 ; RESULT=$?
if ls tests/*~ 1> /dev/null 2>&1; then \
for backup in tests/*~; do mv $${backup} $${backup%\~}; done; \
fi
......