edit.c: avoid warning about signed/unsigned comparison