From 682e5ee9e871b66d5227468bfa2ae3bc7b7d14cc Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 25 Jul 2005 01:51:06 +0000 Subject: [PATCH] Allow "1+23" even for F format, for compatibility. --- src/ChangeLog | 5 +++++ src/data-in.c | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index f889b723..6eee062a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +Sun Jul 24 18:49:20 2005 Ben Pfaff + + * data-in.c: (parse_numeric) Allow "1+23" even for F format, for + compatibility. + Sun Jul 24 18:47:37 2005 Ben Pfaff * pfm-read.c: (read_version_data) Read and ignore author field. diff --git a/src/data-in.c b/src/data-in.c index 3a49fa23..945cafd7 100644 --- a/src/data-in.c +++ b/src/data-in.c @@ -212,9 +212,7 @@ parse_numeric (struct data_in *i) return false; } - if (have_char (i) - && (tolower (*i->s) == 'e' || tolower (*i->s) == 'd' - || (type == FMT_E && (*i->s == '+' || *i->s == '-')))) + if (have_char (i) && strchr ("eEdD-+", *i->s)) { /* Get the exponent specified after the `e' or `E'. */ long exp; -- 2.30.2