Fix compiler warning: compare signed and unsigned.

@phkelley: minor fix to a previous revision.