mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
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:
parent
80809a8f0f
commit
9ac538b6b9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user