get rid of [-Wtype-limits] warning