Some minor comparison flaw - CHAR_MAX to UINT_MAX

Signed-off-by: Bogdan PURCĂREAŢĂ <bogdan.purcareata@cti.pub.ro>