From 749093e336264042c4cc37e3f0c18a052fad2114 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 27 Oct 2008 05:12:02 +0000 Subject: Really stop on first non-digit svn path=/trunk/libcss/; revision=5647 --- src/utils/utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/utils.h') diff --git a/src/utils/utils.h b/src/utils/utils.h index 85a4f9e..d31278d 100644 --- a/src/utils/utils.h +++ b/src/utils/utils.h @@ -55,7 +55,7 @@ static inline int32_t integer_from_css_string(const css_string *string) /* Now extract value, assuming base 10 */ while (len > 0) { /* Stop on first non-digit */ - if (ptr[0] <= '0' || '9' <= ptr[0]) + if (ptr[0] < '0' || '9' < ptr[0]) break; val *= 10; -- cgit v1.2.3