From 9d97c06d9d7047d2a9b715dd5d7b85e022623e84 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 12 Jan 2009 15:29:51 +0000 Subject: [PATCH] fix a warning in test/alignedbox --- test/alignedbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/alignedbox.cpp b/test/alignedbox.cpp index 0d295021e..53d61b62d 100644 --- a/test/alignedbox.cpp +++ b/test/alignedbox.cpp @@ -48,7 +48,7 @@ template void alignedbox(const BoxType& _box) b0.extend(p0); b0.extend(p1); - VERIFY(b0.contains(p0*s1+(1.-s1)*p1)); + VERIFY(b0.contains(p0*s1+(Scalar(1)-s1)*p1)); VERIFY(!b0.contains(p0 + (1+s1)*(p1-p0))); (b2 = b0).extend(b1);