diff options
author | David Robillard <d@drobilla.net> | 2021-03-01 19:15:24 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-03-08 23:23:06 -0500 |
commit | 15485f61df8cbd922907db39fcc864abb002eea3 (patch) | |
tree | 3ea4979ab93405925589d18414a5004e8b46286f /src/n3.c | |
parent | 468f7dc4294905d19f55c58c47ba91cd23bf357b (diff) | |
download | serd-15485f61df8cbd922907db39fcc864abb002eea3.tar.gz serd-15485f61df8cbd922907db39fcc864abb002eea3.tar.bz2 serd-15485f61df8cbd922907db39fcc864abb002eea3.zip |
Fix various warnings and conversion issues
Diffstat (limited to 'src/n3.c')
-rw-r--r-- | src/n3.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -65,7 +65,7 @@ read_HEX(SerdReader* reader) } // Read UCHAR escape, initial \ is already eaten by caller -static inline SerdStatus +static SerdStatus read_UCHAR(SerdReader* reader, SerdNode* dest, uint32_t* char_code) { const int b = peek_byte(reader); @@ -143,7 +143,7 @@ read_UCHAR(SerdReader* reader, SerdNode* dest, uint32_t* char_code) } // Read ECHAR escape, initial \ is already eaten by caller -static inline SerdStatus +static SerdStatus read_ECHAR(SerdReader* reader, SerdNode* dest) { const int c = peek_byte(reader); @@ -279,7 +279,7 @@ read_comment(SerdReader* reader) } // [24] ws ::= #x9 | #xA | #xD | #x20 | comment -static inline bool +static bool read_ws(SerdReader* reader) { const int c = peek_byte(reader); @@ -308,14 +308,14 @@ read_ws_star(SerdReader* reader) } static inline bool -peek_delim(SerdReader* reader, const char delim) +peek_delim(SerdReader* reader, const uint8_t delim) { read_ws_star(reader); return peek_byte(reader) == delim; } static inline bool -eat_delim(SerdReader* reader, const char delim) +eat_delim(SerdReader* reader, const uint8_t delim) { if (peek_delim(reader, delim)) { eat_byte_safe(reader, delim); |