Skip to content
Snippets Groups Projects
Commit f53fd485 authored by Julien Michel's avatar Julien Michel
Browse files

ENH: Fixing arithmetic expression error (divide by 0)

parent 50a18c19
No related branches found
No related tags found
No related merge requests found
...@@ -835,6 +835,12 @@ ITK_THREAD_RETURN_TYPE JPEG2000ImageIO::ThreaderCallback( void *arg ) ...@@ -835,6 +835,12 @@ ITK_THREAD_RETURN_TYPE JPEG2000ImageIO::ThreaderCallback( void *arg )
total = std::min((unsigned int)tiles->size(),threadCount); total = std::min((unsigned int)tiles->size(),threadCount);
if(total == 0)
{
return ITK_THREAD_RETURN_VALUE;
}
unsigned int tilesPerThread = tiles->size()/total; unsigned int tilesPerThread = tiles->size()/total;
if(tilesPerThread == 0) if(tilesPerThread == 0)
......
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