summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2013-04-18 19:13:16 +0200
committerPatrick McHardy <kaber@trash.net>2013-04-18 19:13:16 +0200
commit7a83f1d55a6bb087ed8c994867a868c47f6a7764 (patch)
tree3108cb8e158febb411838e1dde0e2bbd1f5bb7ed /src
parente19e0ed6cde3176b7ef519748f893aa1afc86fa7 (diff)
mark: fix numeric mark value parsing
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src')
-rw-r--r--src/datatype.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/datatype.c b/src/datatype.c
index 3a2f19d8..3c17e929 100644
--- a/src/datatype.c
+++ b/src/datatype.c
@@ -585,6 +585,13 @@ static void mark_type_print(const struct expr *expr)
static struct error_record *mark_type_parse(const struct expr *sym,
struct expr **res)
{
+ struct error_record *erec;
+
+ erec = sym->dtype->basetype->parse(sym, res);
+ if (erec != NULL)
+ return erec;
+ if (*res)
+ return NULL;
return symbolic_constant_parse(sym, mark_tbl, res);
}