I screwed up the macros, so of course strtol didn't work. *sigh*
authorChris Lattner <sabre@nondot.org>
Mon, 29 Oct 2001 17:47:10 +0000 (17:47 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 29 Oct 2001 17:47:10 +0000 (17:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1035 91177308-0d34-0410-b5e6-96231b3b80d8

tools/lli/RuntimeLib.lc

index f2611a85152445d43f36bcc4285bcaf1c2329b04..b8d3f04ef48bd7901ea94568d3cff2b23073d3d4 100644 (file)
@@ -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