diff options
author | stephen <stephen@FreeBSD.org> | 2014-03-03 11:12:25 +0800 |
---|---|---|
committer | stephen <stephen@FreeBSD.org> | 2014-03-03 11:12:25 +0800 |
commit | c7b5b6b35c0db49f4a74c1ad7c665e0f11021757 (patch) | |
tree | 802e2204a771a5ef1f1e4227651fd0ea236bfe00 /math | |
parent | 7ed0fc10cebe29d59b7b9f358d6047c4afa668eb (diff) | |
download | freebsd-ports-gnome-c7b5b6b35c0db49f4a74c1ad7c665e0f11021757.tar.gz freebsd-ports-gnome-c7b5b6b35c0db49f4a74c1ad7c665e0f11021757.tar.zst freebsd-ports-gnome-c7b5b6b35c0db49f4a74c1ad7c665e0f11021757.zip |
- Fix compile error with clang.
Diffstat (limited to 'math')
-rw-r--r-- | math/octave-forge-image/files/patch-bwdist.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/math/octave-forge-image/files/patch-bwdist.cc b/math/octave-forge-image/files/patch-bwdist.cc new file mode 100644 index 000000000000..13ac487ddbf1 --- /dev/null +++ b/math/octave-forge-image/files/patch-bwdist.cc @@ -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); |