summaryrefslogtreecommitdiffstats
path: root/src/sordi.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-02-04 05:23:31 +0000
committerDavid Robillard <d@drobilla.net>2011-02-04 05:23:31 +0000
commitedf40906a3988a4daace075fc714533a0e778814 (patch)
tree757f7e76af12d0b681ff5240bb95c011588ee950 /src/sordi.c
parentdd0de65f32718cbf5647ba0c1a2b5692507cf6b3 (diff)
downloadsord-edf40906a3988a4daace075fc714533a0e778814.tar.gz
sord-edf40906a3988a4daace075fc714533a0e778814.tar.bz2
sord-edf40906a3988a4daace075fc714533a0e778814.zip
Use uint8_t for API char type for UTF-8 friendliness.
Fix literal languages. git-svn-id: http://svn.drobilla.net/sord/trunk@20 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/sordi.c')
-rw-r--r--src/sordi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sordi.c b/src/sordi.c
index f304b9e..4a7454b 100644
--- a/src/sordi.c
+++ b/src/sordi.c
@@ -65,9 +65,9 @@ file_sink(const void* buf, size_t len, void* stream)
static inline SerdNode
serd_node_from_sord_node(const SordNode n)
{
- size_t n_bytes = 0;
- const char* buf = sord_node_get_string_counted(n, &n_bytes);
- SerdNode sn = { SERD_NOTHING, n_bytes, n_bytes - 1, (const uint8_t*)buf };
+ size_t n_bytes = 0;
+ const uint8_t* buf = sord_node_get_string_counted(n, &n_bytes);
+ SerdNode sn = { SERD_NOTHING, n_bytes, n_bytes - 1, (const uint8_t*)buf };
// FIXME: UTF-8
switch (sord_node_get_type(n)) {
case SORD_URI: