aboutsummaryrefslogtreecommitdiff
path: root/qbe.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-10-03 13:29:58 -0700
committerMichael Forney <mforney@mforney.org>2021-10-03 13:29:58 -0700
commit043879980822bb15d4d580a2ce36b99f0c73fa83 (patch)
tree561d8c3b672aff72ee461ab6b7706c9385a3b983 /qbe.c
parent6764a38d863103f6ca66bb05fbbe2be2225f973e (diff)
expr: Use end pointer to detect string-to-number conversion failures
We explicitly ignore ERANGE for strtod, and in any other error case, the end pointer is set to the beginning of the string.
Diffstat (limited to 'qbe.c')
-rw-r--r--qbe.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/qbe.c b/qbe.c
index a1f2773..50eb5eb 100644
--- a/qbe.c
+++ b/qbe.c
@@ -1,6 +1,5 @@
#include <assert.h>
#include <ctype.h>
-#include <errno.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>