diff options
Diffstat (limited to 'src/n3.c')
-rw-r--r-- | src/n3.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -980,11 +980,10 @@ read_BLANK_NODE_LABEL(SerdReader* reader, Ref* dest, bool* ate_dot) eat_byte_safe(reader, '_'); eat_byte_check(reader, ':'); - const Ref ref = *dest = - push_node(reader, - SERD_BLANK, - reader->bprefix ? (char*)reader->bprefix : "", - reader->bprefix_len); + const Ref ref = *dest = push_node(reader, + SERD_BLANK, + reader->bprefix ? reader->bprefix : "", + reader->bprefix_len); int c = peek_byte(reader); // First: (PN_CHARS | '_' | [0-9]) if (is_digit(c) || c == '_') { @@ -1023,7 +1022,6 @@ read_BLANK_NODE_LABEL(SerdReader* reader, Ref* dest, bool* ate_dot) } } } - return SERD_SUCCESS; } @@ -1556,7 +1554,7 @@ tokcmp(SerdReader* reader, Ref ref, const char* tok, size_t n) return -1; } - return serd_strncasecmp((const char*)node->buf, tok, n); + return serd_strncasecmp(node->buf, tok, n); } SerdStatus |