From ef4b6e1b8d2ad077d230dc761205341f99eac561 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sat, 15 Mar 2008 11:18:27 +0100 Subject: [PATCH] evalue_read: accept constraints containing "'-' space number variable" print_evalue will never print such constraints, but manual input may contain them. --- evalue_read.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/evalue_read.c b/evalue_read.c index ea0ec03..ce106f6 100644 --- a/evalue_read.c +++ b/evalue_read.c @@ -667,6 +667,12 @@ static int evalue_read_constraint(struct stream *s, struct parameter **p, if (!c) c = constraint_new(); tok2 = stream_next_token(s); + if (tok2 && tok2->type == TOKEN_VALUE) { + /* Handle "-" space cst, where "-" is translated to -1 */ + value_multiply(tok->u.v, tok->u.v, tok2->u.v); + token_free(tok2); + tok2 = stream_next_token(s); + } if (tok2 && tok2->type == TOKEN_IDENT) { pos = parameter_pos(p, tok2->u.s, -1); constraint_extend(c, 1+pos); -- 2.11.4.GIT