MSVC fixes

One fix is a simple (pointless) compiler warning about precision. The
other fix is an error in one of the test codes that did not clear out
the message string in an error message buffer like it was supposed to.
This commit is contained in:
Kenneth Moreland 2014-10-22 10:52:35 -06:00
parent 80809a8f0f
commit 9ac538b6b9
2 changed files with 2 additions and 1 deletions

@ -64,7 +64,7 @@ struct FetchArrayDirectInTests
VTKM_TEST_ASSERT(test_equal(value, TestValue(index, T())),
"Got invalid value from Load.");
value = 2*value;
value = T(2)*value;
// This should be a no-op, but we should be able to call it.
fetch.Store(index, invocation, value);

@ -260,6 +260,7 @@ void TestErrorFunctorInvoke()
WorkletInvokeFunctor1 workletInvokeFunctor1 =
WorkletInvokeFunctor1(TestWorkletErrorProxy(), InvocationType1(execObjects));
char message[1024];
message[0] = '\0';
vtkm::exec::internal::ErrorMessageBuffer errorMessage(message, 1024);
workletInvokeFunctor1.SetErrorMessageBuffer(errorMessage);
workletInvokeFunctor1(1);