From fe83ab527d731428cb1a92b2bb33bbf242bfdbdb Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 29 Oct 2001 17:47:10 +0000 Subject: [PATCH] I screwed up the macros, so of course strtol didn't work. *sigh* git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1035 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/lli/RuntimeLib.lc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/lli/RuntimeLib.lc b/tools/lli/RuntimeLib.lc index f2611a85152..b8d3f04ef48 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