From 19f91c3ea594ba1e665691eab04a102fb0caa527 Mon Sep 17 00:00:00 2001 From: Renge Date: Fri, 18 Feb 2022 22:50:57 -0500 Subject: [PATCH] fix: convert "E" to "e" --- hw1/src/argo.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hw1/src/argo.c b/hw1/src/argo.c index 416b8ff..62e1c0c 100644 --- a/hw1/src/argo.c +++ b/hw1/src/argo.c @@ -338,6 +338,11 @@ int argo_read_number(ARGO_NUMBER *n, FILE *f) { ARGO_CHAR *ptr = string_value; ptr += length; + if (c == 'E') + { + c = 'e'; + } + *ptr = c; length++; }