aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-01-07 20:33:42 +0100
committerDavid Robillard <d@drobilla.net>2019-04-13 19:48:23 +0200
commit2719fc4709d05193aa89557051af1d65a738c4d5 (patch)
tree18a11d72f789535d79f835f7ad44daa4d1b536b5 /src/n3.c
parent105cc91e8fb7bb1a70e5715dbbbf3f967d508065 (diff)
downloadserd-2719fc4709d05193aa89557051af1d65a738c4d5.tar.gz
serd-2719fc4709d05193aa89557051af1d65a738c4d5.tar.bz2
serd-2719fc4709d05193aa89557051af1d65a738c4d5.zip
Fix integer conversion warnings
Diffstat (limited to 'src/n3.c')
-rw-r--r--src/n3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/n3.c b/src/n3.c
index 16bac20d..0a0760a4 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -83,7 +83,7 @@ read_UCHAR(SerdReader* reader, SerdNode* dest, uint32_t* char_code)
}
char* endptr = NULL;
- const uint32_t code = strtoul((const char*)buf, &endptr, 16);
+ const uint32_t code = (uint32_t)strtoul((const char*)buf, &endptr, 16);
assert(endptr == (char*)buf + length);
unsigned size = 0;