summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSadeep Madurange <smadurange@users.noreply.github.com>2021-12-27 19:02:44 +0800
committerSadeep Madurange <smadurange@users.noreply.github.com>2021-12-27 19:02:44 +0800
commit244bb0c4e4d32b8f6c32a33c464d02546b26d0a5 (patch)
tree02720f2033aea3077371fd4ed6a8914e4f6bb070
parentfb67d9ce5a71feee7b091d56a046c2ae42baaefe (diff)
downloadk&r-exercises-244bb0c4e4d32b8f6c32a33c464d02546b26d0a5.tar.gz
5.2
-rw-r--r--5/2.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/5/2.c b/5/2.c
index db37319..ba93a5e 100644
--- a/5/2.c
+++ b/5/2.c
@@ -57,10 +57,8 @@ int getfloat(float *pf) {
rad++;
continue;
}
-
if (rad)
div *= 10;
-
*pf = 10.0 * *pf + (c - '0');
}