diff options
author | David Robillard <d@drobilla.net> | 2019-01-07 18:55:35 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-01-07 18:55:35 +0100 |
commit | 9d31b07bbc144da93eb65250ee7cf47611d1ce16 (patch) | |
tree | 83c59c63f86281803ff9e11a033b251e950fbe58 /src/reader.c | |
parent | 9b80535334de1a3ca0bf40d2f1109202385148aa (diff) | |
download | serd-9d31b07bbc144da93eb65250ee7cf47611d1ce16.tar.gz serd-9d31b07bbc144da93eb65250ee7cf47611d1ce16.tar.bz2 serd-9d31b07bbc144da93eb65250ee7cf47611d1ce16.zip |
WIP: Fix warningsserd1-warnings
Diffstat (limited to 'src/reader.c')
-rw-r--r-- | src/reader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/reader.c b/src/reader.c index 6113a208..2c13956f 100644 --- a/src/reader.c +++ b/src/reader.c @@ -53,7 +53,8 @@ set_blank_id(SerdReader* reader, SerdNode* node, size_t buf_size) { char* buf = (char*)(node + 1); const char* prefix = reader->bprefix ? (const char*)reader->bprefix : ""; - node->n_bytes = snprintf(buf, buf_size, "%sb%u", prefix, reader->next_id++); + node->n_bytes = + (size_t)snprintf(buf, buf_size, "%sb%u", prefix, reader->next_id++); } size_t |