From 315339861d6461ce138518ddc30ee287582ff4cf Mon Sep 17 00:00:00 2001 From: "Christopher D. McMurrough" Date: Sun, 21 Feb 2016 10:47:04 -0600 Subject: [PATCH] added type cast to fix ambiguous type compilation error in VS12 --- test/io/test_buffers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/io/test_buffers.cpp b/test/io/test_buffers.cpp index 01445d41aa2..89eb32406ea 100644 --- a/test/io/test_buffers.cpp +++ b/test/io/test_buffers.cpp @@ -68,8 +68,8 @@ class BuffersTest : public ::testing::Test memcpy (d.data (), dptr, buffer.size () * sizeof (T)); buffer.push (d); for (size_t j = 0; j < buffer.size (); ++j) - if (isnan (eptr[j])) - EXPECT_TRUE (isnan (buffer[j])); + if (isnan ((double) eptr[j])) + EXPECT_TRUE (isnan ((double) buffer[j])); else EXPECT_EQ (eptr[j], buffer[j]); dptr += buffer.size ();