svn commit: r346850 - head/math/octave-forge-image/files

Stephen Montgomery-Smith stephen at FreeBSD.org
Mon Mar 3 03:12:26 UTC 2014


Author: stephen
Date: Mon Mar  3 03:12:25 2014
New Revision: 346850
URL: http://svnweb.freebsd.org/changeset/ports/346850
QAT: https://qat.redports.org/buildarchive/r346850/

Log:
  - Fix compile error with clang.

Added:
  head/math/octave-forge-image/files/
  head/math/octave-forge-image/files/patch-bwdist.cc   (contents, props changed)

Added: head/math/octave-forge-image/files/patch-bwdist.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/octave-forge-image/files/patch-bwdist.cc	Mon Mar  3 03:12:25 2014	(r346850)
@@ -0,0 +1,11 @@
+--- bwdist.cc-orig	2014-03-03 03:07:22.000000000 +0000
++++ bwdist.cc	2014-03-03 03:07:36.000000000 +0000
+@@ -530,7 +530,7 @@
+   // Compute optional 'index to closest object pixel', only if requested
+   if (nargout > 1)
+     {
+-      if (numel >= pow (2, 32))
++      if (numel >= pow (2., 32))
+         retval(1) = calc_index<uint64NDArray> (bw, xdist, ydist);
+       else
+         retval(1) = calc_index<uint32NDArray> (bw, xdist, ydist);


More information about the svn-ports-head mailing list