corrected warning about signed/unsigned comparison when assert is used