Use UINT_MAX

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
Fix a warning