summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-10-27 05:12:02 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-10-27 05:12:02 +0000
commit749093e336264042c4cc37e3f0c18a052fad2114 (patch)
treef0a16058fd6a610b9fb2603fec69e5cd607f2ed4 /src
parentc38cd75712e523fd500aa6d87ad7c27547d89eee (diff)
downloadlibcss-749093e336264042c4cc37e3f0c18a052fad2114.tar.gz
libcss-749093e336264042c4cc37e3f0c18a052fad2114.tar.bz2
Really stop on first non-digit
svn path=/trunk/libcss/; revision=5647
Diffstat (limited to 'src')
-rw-r--r--src/utils/utils.h2
1 files changed, 1 insertions, 1 deletions
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;