Commit 80c0c47f authored by schurade's avatar schurade
Browse files

[FIX] use unsigned char when the datatype is unsigned char and not int8

parent e411932b
......@@ -96,8 +96,8 @@ void WLoaderNIfTI::operator()()
{
case DT_UNSIGNED_CHAR:
{
std::vector< int8_t > data = copyArray( reinterpret_cast< int8_t* >( filedata->data ), countVoxels, vDim );
newValueSet = boost::shared_ptr< WValueSetBase >( new WValueSet< int8_t >( 1, vDim, data, W_DT_INT8 ) );
std::vector< unsigned char > data = copyArray( reinterpret_cast< unsigned char* >( filedata->data ), countVoxels, vDim );
newValueSet = boost::shared_ptr< WValueSetBase >( new WValueSet< unsigned char >( 1, vDim, data, W_DT_UNSIGNED_CHAR ) );
break;
}
......
Markdown is supported
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