fix warning of comparison with signed number and unsigned number