summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2022-11-27 18:23:42 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2022-11-27 18:23:42 +0000
commit7f97358eab83a5444eb32fdfbd4bbf600c55dd5c (patch)
treed9856febaa2b8b4e97e2a5689bb3e6511ac711fa
parentf509cfc624ffcf093348c2e06887e2c16351858c (diff)
downloadlibdom-master.tar.gz
libdom-master.tar.bz2
(tokenlist): Try harder to avoid type punningHEADmaster
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
-rw-r--r--src/core/tokenlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/tokenlist.c b/src/core/tokenlist.c
index 4e9f466..cc93a8c 100644
--- a/src/core/tokenlist.c
+++ b/src/core/tokenlist.c
@@ -48,12 +48,12 @@ static void _dom_tokenlist_handle_attrmodified(dom_event *evt, void *pw)
dom_string *value;
{
- dom_node *target;
+ dom_event_target *target;
exc = dom_event_get_target(evt, &target);
if (exc != DOM_NO_ERR)
return;
dom_node_unref(target);
- if (target != (dom_node *)list->ele)
+ if (target != (dom_event_target *)list->ele)
return;
}