I went through marker.c and fixed all the EMACS_INT/int problems there. Before committing, could somebody take a peek and see whether it looks saneish? I can't actually test, since the interval cleanup makes Emacs segfault...