mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[css] cast
This commit is contained in:
parent
723bc935d2
commit
dea07293e7
@ -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, '}');
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user