Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
use isdigit rather than isnumber (the latter is not implemented on DragonFly and is aimed at non-UTF8 use
John Marino committed 13 years ago
commit 47069d6c29a73d6c1ac5b6ffd6bfff4a7fd7d3f9
parent a7f29f5
1 file changed +2 -2
modified pkg/query.c
@@ -664,7 +664,7 @@ bad_option:
					}
					sbuf_putc(sqlcond, '\'');
				} else {
-
					if (!isnumber(str[0])) {
+
					if (!isdigit(str[0])) {
						fprintf(stderr, "a number is expected, got: %c\n", str[0]);
						return (EPKG_FATAL);
					}
@@ -673,7 +673,7 @@ bad_option:
				}
			}
		} else if (state == INT) {
-
			if (!isnumber(str[0])) {
+
			if (!isdigit(str[0])) {
				state = POST_EXPR;
				str--;
			} else {