summaryrefslogtreecommitdiff
path: root/src/select/hash.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-03-02 18:37:50 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-03-02 18:37:50 +0000
commit198648d8926722a5ae11a8a60f7ce82688b2ded5 (patch)
tree188e47d3e0528bc1746b50791ca4cf0e00c5996a /src/select/hash.c
parent0d248200f10cee87ba12a8de9cb50eac00d6cd07 (diff)
downloadlibcss-198648d8926722a5ae11a8a60f7ce82688b2ded5.tar.gz
libcss-198648d8926722a5ae11a8a60f7ce82688b2ded5.tar.bz2
Reduce code duplication
svn path=/trunk/libcss/; revision=6671
Diffstat (limited to 'src/select/hash.c')
-rw-r--r--src/select/hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/select/hash.c b/src/select/hash.c
index f471861..1db65ea 100644
--- a/src/select/hash.c
+++ b/src/select/hash.c
@@ -301,7 +301,7 @@ css_error css_selector_hash_iterate(css_selector_hash *hash,
*/
uint32_t _hash(const css_selector *sel)
{
- return (uint32_t) (((uintptr_t) sel->data.name) & 0xffffffff);
+ return _hash_name(sel->data.name);
}
/**