Solve unresolved call of min(int&, unsigned int&)
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 23 Oct 2012 16:46:13 +0000 (16:46 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 23 Oct 2012 16:46:13 +0000 (16:46 +0000)
Alternative could be using unsigned ints for min/max chunks.

source/blender/compositor/intern/COM_ExecutionGroup.cpp

index 265fab97cc57d8f78e3fbbd8da5e0503d46d2c64..0553aebbba651369a62201c53dc400040b2a23a5 100644 (file)
@@ -477,8 +477,8 @@ bool ExecutionGroup::scheduleAreaWhenPossible(ExecutionSystem *graph, rcti *area
        int maxychunk = ceil((area->ymax - 1) / chunkSizef);
        minxchunk = max(minxchunk, 0);
        minychunk = max(minychunk, 0);
-       maxxchunk = min(maxxchunk, this->m_numberOfXChunks);
-       maxychunk = min(maxychunk, this->m_numberOfYChunks);
+       maxxchunk = min(maxxchunk, (int)this->m_numberOfXChunks);
+       maxychunk = min(maxychunk, (int)this->m_numberOfYChunks);
 
        bool result = true;
        for (indexx = minxchunk; indexx < maxxchunk; indexx++) {