apedec: use unsigned int for offset