diff --git a/src/document/html/parser.c b/src/document/html/parser.c
index 976bd66c7..9d76277ea 100644
--- a/src/document/html/parser.c
+++ b/src/document/html/parser.c
@@ -78,7 +78,7 @@ get_color(struct html_context *html_context, char *a,
}
int
-get_color2(struct html_context *html_context, unsigned char *value_value, color_T *rgb)
+get_color2(struct html_context *html_context, char *value_value, color_T *rgb)
{
if (!use_document_fg_colors(html_context->options))
return -1;
diff --git a/src/document/html/parser.h b/src/document/html/parser.h
index 307d8d3cd..0598fcc89 100644
--- a/src/document/html/parser.h
+++ b/src/document/html/parser.h
@@ -212,7 +212,7 @@ void ln_break(struct html_context *html_context, int n);
int get_color(struct html_context *html_context, char *a, char *c, color_T *rgb);
-int get_color2(struct html_context *html_context, unsigned char *value_value, color_T *rgb);
+int get_color2(struct html_context *html_context, char *value_value, color_T *rgb);
#ifdef __cplusplus
}