Skip to content
Snippets Groups Projects
Commit 7fdf2c85 authored by Jesper Andersson's avatar Jesper Andersson
Browse files

Explicit cast to silence warning

parent 5cc6c0da
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,7 @@ public:
// Insert column into volume
void Set(T *dp) const
{
T test = 1.5;
T test = static_cast<T>(1.5);
if (test == 1) { // If T is not float or double
for (unsigned int i=0; i<_sz; i++, dp+=_step) *dp = static_cast<T>(_col[i] + 0.5); // Round to nearest integer
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment