From 2ebac2ebabe6bdee0448e4c203205592770fbeb2 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 31 Jan 2021 19:11:37 -0800 Subject: [PATCH] remove dead code for suffix handling of parsed numbers This code attempted to handle a numeric suffix indicating a multiplier (e.g. 'k' for 1024). However, the preceding logic that constructs a temporary buffer for it to parse from does not anticipate suffixes and copy them to the buffer. The (inactive) suffix code is considered only useful for describing file sizes, so not relevant to enable for Graphviz. Closes #1933. --- lib/expr/extoken.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/expr/extoken.c b/lib/expr/extoken.c index abcbf83a7..37e55f9d3 100644 --- a/lib/expr/extoken.c +++ b/lib/expr/extoken.c @@ -619,11 +619,6 @@ extoken_fn(Expr_t* ex) } else exlval.integer = strtoll(s, &e, b); - if (*e) - { - *--e = 1; - exlval.integer *= strton(e, &e, NiL, 0); - } } exunlex(ex, c); if (*e || isalpha(c) || c == '_' || c == '$') -- 2.40.0