From 48d3973daa4dde5be16e1306db8c32759820f4b0 Mon Sep 17 00:00:00 2001 From: krangelov Date: Wed, 20 May 2020 10:15:53 +0200 Subject: [PATCH] fix the uggly typo that broke the literals. --- src/runtime/c/pgf/literals.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/runtime/c/pgf/literals.c b/src/runtime/c/pgf/literals.c index a3116810a..83e4769a1 100644 --- a/src/runtime/c/pgf/literals.c +++ b/src/runtime/c/pgf/literals.c @@ -10,7 +10,7 @@ pgf_match_string_lit(PgfLiteralCallback* self, PgfConcr* concr, GuString sentence, size_t* poffset, GuPool *out_pool) { - if (strcmp("ann","s") != 0) + if (strcmp(ann,"s") != 0) return NULL; const uint8_t* buf = (uint8_t*) (sentence + *poffset); @@ -72,7 +72,7 @@ pgf_match_int_lit(PgfLiteralCallback* self, PgfConcr* concr, GuString sentence, size_t* poffset, GuPool *out_pool) { - if (strcmp("ann","s") != 0) + if (strcmp(ann,"s") != 0) return NULL; const uint8_t* buf = (uint8_t*) (sentence + *poffset); @@ -127,7 +127,7 @@ pgf_match_float_lit(PgfLiteralCallback* self, PgfConcr* concr, GuString sentence, size_t* poffset, GuPool *out_pool) { - if (strcmp("ann","s") != 0) + if (strcmp(ann,"s") != 0) return NULL; const uint8_t* buf = (uint8_t*) (sentence + *poffset); @@ -233,7 +233,7 @@ pgf_match_name_lit(PgfLiteralCallback* self, PgfConcr* concr, GuString sentence, size_t* poffset, GuPool *out_pool) { - if (strcmp("ann","s") != 0) + if (strcmp(ann,"s") != 0) return NULL; GuPool* tmp_pool = gu_local_pool();