aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/lli/RuntimeLib.lc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/lli/RuntimeLib.lc b/tools/lli/RuntimeLib.lc
index f2611a8515..b8d3f04ef4 100644
--- a/tools/lli/RuntimeLib.lc
+++ b/tools/lli/RuntimeLib.lc
@@ -18,9 +18,9 @@ void *malloc(unsigned);
void free(void *);
#define isspace(x) ((x) == ' ' || (x) == '\t' || (x) == '\n')
-#define isdigit(x) ((x) >= '0' || (x) <= '9')
-#define isupper(x) ((x) >= 'A' || (x) <= 'Z')
-#define islower(x) ((x) >= 'a' || (x) <= 'z')
+#define isdigit(x) ((x) >= '0' && (x) <= '9')
+#define isupper(x) ((x) >= 'A' && (x) <= 'Z')
+#define islower(x) ((x) >= 'a' && (x) <= 'z')
#define isalpha(x) (isupper(x) || islower(x))
// The puts() function writes the string pointed to by s, followed by a