1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00

[css] cast

This commit is contained in:
Witold Filipczyk 2022-01-25 17:46:03 +01:00
parent 723bc935d2
commit dea07293e7
2 changed files with 3 additions and 3 deletions

View File

@ -600,7 +600,7 @@ css_parse_ruleset(struct css_stylesheet *css, struct scanner *scanner)
* waste that having the property multiple times in a selector, I
* believe. --pasky */
pkg = selectors.next;
pkg = (struct selector_pkg *)selectors.next;
css_parse_properties(&properties, scanner);
skip_css_tokens(scanner, '}');

View File

@ -113,7 +113,7 @@ struct scanner_info css_scanner_info = {
&& check_css_precedence(*(s), skipto)) { \
if (isquote(*(s))) { \
int size = (scanner)->end - (s); \
char *end = memchr(s + 1, *(s), size); \
char *end = (char *)memchr(s + 1, *(s), size); \
\
if (end) (s) = end; \
} \
@ -302,7 +302,7 @@ scan_css_token(struct scanner *scanner, struct scanner_token *token)
} else if (isquote(first_char)) {
/* TODO: Escaped delimiters --jonas */
int size = scanner->end - string;
char *string_end = memchr(string, first_char, size);
char *string_end = (char *)memchr(string, first_char, size);
if (string_end) {
/* We don't want the delimiters in the token */