summaryrefslogtreecommitdiff
path: root/src/cssparser.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2012-05-26 13:58:42 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2012-05-26 13:58:42 +0200
commit366fe274ebb7b318fe042b3ab2e60bd81179f43e (patch)
tree711df5c4f9e1e5f95a39edc0232cee19252286b5 /src/cssparser.cc
parentda02f4ca35ba0346ad1826bab87042f39660f0c0 (diff)
unify use of sizeof() when computing array length
Submitted by: 123 <p37sitdu@lavabit.com>
Diffstat (limited to 'src/cssparser.cc')
-rw-r--r--src/cssparser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cssparser.cc b/src/cssparser.cc
index ca41781e..8131372a 100644
--- a/src/cssparser.cc
+++ b/src/cssparser.cc
@@ -412,7 +412,7 @@ static const CssShorthandInfo Css_shorthand_info[] = {
};
#define CSS_SHORTHAND_NUM \
- (sizeof(Css_shorthand_info) / sizeof(CssShorthandInfo))
+ (sizeof(Css_shorthand_info) / sizeof(Css_shorthand_info[0]))
/* ----------------------------------------------------------------------
* Parsing