Make it compile with P_NO_MEMPOOL defined.
Prevent warning about sign comparison.