Get rid of warning: warning: comparison is always true due to limited range of data type