Commit 0187c390 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

Fix #16833. Fix type conversion warning.

parent d5014921
......@@ -779,11 +779,12 @@ vtkImageData *vtkGetNoiseResource()
unsigned char* binaryInput
= new unsigned char[file_noise200x200_vtk_decoded_length + 10];
unsigned long binarylength = vtkBase64Utilities::DecodeSafely(
unsigned long binarylength = static_cast<unsigned long>(
vtkBase64Utilities::DecodeSafely(
reinterpret_cast<const unsigned char*>(base64string.c_str()),
base64string.length(),
binaryInput,
file_noise200x200_vtk_decoded_length + 10);
file_noise200x200_vtk_decoded_length + 10));
assert("check valid_length"
&& (binarylength == file_noise200x200_vtk_decoded_length));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment