Ok, I tested with both clang and MSVC and using uint32_t seems to work ok (we can still remove the cast) even though fDlp->sSliceCfg.sSliceArgument.uiSliceNum is declared as "unsigned int".

(Removing the cast is important, because if the types of uiSliceNum and this parameter are changed to mismatching types, you would not get a warning if you have a cast.)