alcove_decode_define: fix error in cast

On FreeBSD and OpenBSD, casting a pointer to int to unsigned long long
overwrote the index.