fix type warnings
This commit is contained in:
parent
62fe68acdd
commit
c9cbd9693d
@ -29,7 +29,8 @@ vtkm::UInt32 EncodePNG(std::vector<unsigned char> const& image,
|
||||
{
|
||||
// The default is 8 bit RGBA; does anyone care to have more options?
|
||||
// We can certainly add them in a backwards-compatible way if need be.
|
||||
vtkm::UInt32 error = vtkm::png::lodepng::encode(output_png, image, width, height);
|
||||
vtkm::UInt32 error = vtkm::png::lodepng::encode(
|
||||
output_png, image, static_cast<unsigned int>(width), static_cast<unsigned int>(height));
|
||||
if (error)
|
||||
{
|
||||
VTKM_LOG_S(vtkm::cont::LogLevel::Error,
|
||||
|
Loading…
Reference in New Issue
Block a user