summaryrefslogtreecommitdiff
path: root/src/parse/css21props.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/css21props.c')
-rw-r--r--src/parse/css21props.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse/css21props.c b/src/parse/css21props.c
index 8a315b5..cbf4040 100644
--- a/src/parse/css21props.c
+++ b/src/parse/css21props.c
@@ -1683,7 +1683,7 @@ css_error parse_font_weight(css_css21 *c,
if (token->lower.ptr == c->strings[INHERIT]) {
flags |= FLAG_INHERIT;
} else if (token->type == CSS_TOKEN_NUMBER) {
- int32_t num = 100; /** \todo strntol */
+ int32_t num = integer_from_css_string(&token->lower);
switch (num) {
case 100: value = FONT_WEIGHT_100; break;
case 200: value = FONT_WEIGHT_200; break;