summaryrefslogtreecommitdiff
path: root/ext/standard/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/html.c')
-rw-r--r--ext/standard/html.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/html.c b/ext/standard/html.c
index 16abac0b08..c8e36b8d45 100644
--- a/ext/standard/html.c
+++ b/ext/standard/html.c
@@ -1187,7 +1187,7 @@ static inline void find_entity_for_char(
* at most two entries... */
for ( ; s <= e; s++) {
if (s->normal_entry.second_cp == next_char) {
- *entity = s->normal_entry.entity;
+ *entity = (const unsigned char *) s->normal_entry.entity;
*entity_len = s->normal_entry.entity_len;
return;
}
@@ -1215,7 +1215,7 @@ static inline void find_entity_for_char_basic(
return;
}
- *entity = table[k].data.ent.entity;
+ *entity = (const unsigned char *) table[k].data.ent.entity;
*entity_len = table[k].data.ent.entity_len;
}
/* }}} */
@@ -1400,7 +1400,7 @@ encode_amp:
ent_len = pos - (char*)&old[cursor];
} else { /* named entity */
/* check for vality of named entity */
- const char *start = &old[cursor],
+ const char *start = (const char *) &old[cursor],
*next = start;
unsigned dummy1, dummy2;