Commit 1f024839 authored by BRAMAS Berenger's avatar BRAMAS Berenger
Browse files

Simply cast an int to IndexType

parent 9de3515a
......@@ -326,7 +326,7 @@ public:
int procInTheMiddle;
if(globalNumberOfElementsLower == 0) procInTheMiddle = -1;
else if(globalNumberOfElementsGreater == 0) procInTheMiddle = currentNbProcs-1;
else procInTheMiddle = FMath::Min(currentNbProcs-2, (currentNbProcs*globalNumberOfElementsLower)
else procInTheMiddle = FMath::Min(IndexType(currentNbProcs-2), (currentNbProcs*globalNumberOfElementsLower)
/(globalNumberOfElementsGreater + globalNumberOfElementsLower));
////FLOG( FLog::Controller << currentComm.processId() << "] procInTheMiddle = " << procInTheMiddle << "\n"; )
......
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