Skip to content
Commits on Source (3)
mia (2.4.6-2) unstable; urgency=medium
* d/p/mia_226_glibc_227: use numeric_limits::max() Closes: #891337
* d/rules: drop superfluous --parallel in dh command
-- Gert Wollny <gewo@debian.org> Tue, 06 Mar 2018 11:21:28 +0100
mia (2.4.6-1) unstable; urgency=medium
* New upstream version 2.4.6
......
Author: Gert Wollny <gewo@debian.org>
Description: Replaced use of HUGE by std::numeric_limits::max()
Debian-Bug: https://bugs.debian.org/891337
--- a/src/fluid2d/vfluid.cc
+++ b/src/fluid2d/vfluid.cc
@@ -1,3 +1,4 @@
+
/* -*- mia-c++ -*-
*
* This file is part of MIA - a toolbox for medical image analysis
@@ -206,7 +207,7 @@
float TFluidReg::calculateJacobian()
{
- float jmin = HUGE;
+ float jmin = numeric_limits<float>::max();
for (unsigned int y = Start.y+1; y < End.y-1; y++) {
for (unsigned int x = Start.x+1; x < End.x-1; x++) {
float j = jacobianAt(x, y);
--- a/src/fluid3d/vfluid.cc
+++ b/src/fluid3d/vfluid.cc
@@ -443,7 +443,7 @@
P3DFVectorfield u(new C3DFVectorfield(params.source->get_size()));
P3DFVectorfield s = in_shift ? in_shift : P3DFVectorfield(new C3DFVectorfield(params.source->get_size()));
- double mismatch = HUGE;
+ double mismatch = numeric_limits<double>::max();
bool do_continue = true;
unique_ptr< TFluidReg> Register(new TFluidReg(params,solver, ipf));
mia_226_glibc_227.patch
......@@ -29,7 +29,7 @@ endif
.PHONY: override_dh_strip override_dh_shlibdeps override_dh_auto_test
%:
dh $@ --parallel
dh $@
override_dh_auto_configure:
dh_auto_configure -- \
......