From b4b6d508d1c7e4005963f2f3b6e37b87f9d4e538 Mon Sep 17 00:00:00 2001 From: Alex Shinn Date: Fri, 1 Sep 2017 16:56:55 +0900 Subject: [PATCH] don't try to read polar notation when math is disabled --- sexp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sexp.c b/sexp.c index 41ece5e4..c2ce49c4 100644 --- a/sexp.c +++ b/sexp.c @@ -3222,10 +3222,12 @@ sexp sexp_read_raw (sexp ctx, sexp in, sexp *shares) { res = tmp; } else if ((str[6] == 'i' || str[6] == 'I') && str[7] == 0) { res = sexp_make_complex(ctx, SEXP_ZERO, tmp); +#if SEXP_USE_MATH } else if (str[6] == '@') { res = sexp_substring_cursor(ctx, res, sexp_make_string_cursor(6), SEXP_FALSE); res = sexp_open_input_string(ctx, res); res = sexp_read_polar_tail(ctx, res, tmp); +#endif } else if (str[6] == '+' || str[6] == '-') { res = sexp_substring_cursor(ctx, res, sexp_make_string_cursor(6), SEXP_FALSE); res = sexp_string_to_number(ctx, res, SEXP_TEN);