[Debian-med-packaging] Bug#860652: snap-aligner: FTBFS on i386: SNAPLib/SortedDataWriter.cpp:338:70: error: no matching function for call to 'max(long unsigned int, _int64)'

IOhannes m zmölnig zmoelnig at umlaeute.mur.at
Wed Dec 20 16:08:18 UTC 2017


On Wed, 19 Apr 2017 10:51:40 +0200 Andreas Tille <andreas at an3as.eu> wrote:
> 
> Anyway.  I try to tackle the first one which leaves me clueless.  Any
> idea why max() and min() are unknown now but were not before?

as to "why" i cannot say, but it's probably related to an update in g++
which comes with a different implementation of max() and min().

however, the fix is to make sure that the right instantiation of the
template is being called.
e.g. replacing "max(1UL << 17, bufferSpace / blocks.size())" with
"std::max(static_cast<long long int>(1UL<<17), bufferSpace / blocks.size())"


fgamsdr
IOhannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 870 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20171220/9741e0c7/attachment.sig>


More information about the Debian-med-packaging mailing list