From e8335806afc45e31157937b880ff39b75c14a2cd Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Fri, 4 Oct 2013 12:04:39 +0000 Subject: GuString is now an ordinary C string - it makes live easier. In addition PgfSymbolKS, PgfExprFun and PgfLiteralStr now keep their strings as embedded flexible arrays. The latest change gives us the same compactness as the old representation but it is a lot easier to use. --- src/runtime/c/pgf/jit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/runtime/c/pgf/jit.c') diff --git a/src/runtime/c/pgf/jit.c b/src/runtime/c/pgf/jit.c index edb2ec97b..901ab66b1 100644 --- a/src/runtime/c/pgf/jit.c +++ b/src/runtime/c/pgf/jit.c @@ -201,7 +201,7 @@ pgf_jit_predicate(PgfJitState* state, PgfCIdMap* abscats, // call the predicate for the category in hypo->type->cid PgfAbsCat* arg = - gu_map_get(abscats, &hypo->type->cid, PgfAbsCat*); + gu_map_get(abscats, hypo->type->cid, PgfAbsCat*); #ifdef PGF_JIT_DEBUG gu_puts(" CALL ", wtr, err); @@ -314,7 +314,7 @@ pgf_jit_done(PgfJitState* state, PgfAbstr* abstr) PgfCallPatch* patch = gu_buf_index(state->patches, PgfCallPatch, i); PgfAbsCat* arg = - gu_map_get(abstr->cats, &patch->cid, PgfAbsCat*); + gu_map_get(abstr->cats, patch->cid, PgfAbsCat*); gu_assert(arg != NULL); jit_patch_calli(patch->ref,(jit_insn*) arg->predicate); -- cgit v1.2.3