Doesn't really matter which you cast here does it? As long as they are both unsigned int or both int.