Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
fix 32bit compatibility
· 5ff8ca5e
Michael R. Crusoe
authored
Jan 20, 2019
5ff8ca5e
return correct result of autopkgtests
· f51d1e08
Michael R. Crusoe
authored
Jan 20, 2019
f51d1e08
Hide whitespace changes
Inline
Side-by-side
debian/patches/32bit
0 → 100644
View file @
f51d1e08
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;
debian/patches/series
View file @
f51d1e08
enable_tests
32bit
set-seqan-cmake-dir.patch
force-link-rt-pthread.patch
debian/tests/run-tests
View file @
f51d1e08
...
...
@@ -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
...
...