i meant to write (ctx->dict + 2 * ctx->lastsymbol) which is a pointer, and not just ctx->lastsymbol (which is an index)