[network-data] avoid comparison of narrow type with wide type in loop (#4724)
[network-data] avoid comparison of narrow type with wide type in loop (#4724)

jwhui/openthread,abtink/openthread,openthread/openthread,chshu/openthread,openthread/openthread,librasungirl/openthread,openthread/openthread,openthread/openthread,lanyuwen/openthread,srickardti/openthread,chshu/openthread,chshu/openthread,jwhui/openthread,bukepo/openthread,bukepo/openthread,chshu/openthread,jwhui/openthread,srickardti/openthread,srickardti/openthread,lanyuwen/openthread,chshu/openthread,bukepo/openthread,chshu/openthread,lanyuwen/openthread,librasungirl/openthread,lanyuwen/openthread,jwhui/openthread,librasungirl/openthread,srickardti/openthread,abtink/openthread,librasungirl/openthread,abtink/openthread,lanyuwen/openthread,bukepo/openthread,lanyuwen/openthread,abtink/openthread