fix compiler warning (signed/unsigned)