Remove a misleading cast

uiSliceSizeConstraint is not of the SliceMode type, but is a normal
int.
Merge pull request #447 from mstorsjo/remove-misleading-cast

Remove a misleading cast