diff options
author | David Robillard <d@drobilla.net> | 2011-04-23 21:27:47 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-23 21:27:47 +0000 |
commit | c8bca421254840c7eb249e138d06f6ae0b008290 (patch) | |
tree | 8336af934b9db34bde70372c13ee792630ceaf3b /src/node.c | |
parent | 82fdce9e8aa514710b349d3862148c7309d0ba36 (diff) | |
download | serd-c8bca421254840c7eb249e138d06f6ae0b008290.tar.gz serd-c8bca421254840c7eb249e138d06f6ae0b008290.tar.bz2 serd-c8bca421254840c7eb249e138d06f6ae0b008290.zip |
Improve node struct alignment
git-svn-id: http://svn.drobilla.net/serd/trunk@147 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/node.c')
-rw-r--r-- | src/node.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -25,7 +25,7 @@ serd_node_from_string(SerdType type, const uint8_t* buf) { size_t buf_n_bytes; const size_t buf_n_chars = serd_strlen(buf, &buf_n_bytes); - SerdNode ret = { type, buf_n_bytes, buf_n_chars, buf }; + SerdNode ret = { buf, buf_n_bytes, buf_n_chars, type }; return ret; } @@ -105,7 +105,7 @@ serd_node_new_uri(const SerdURI* uri, const SerdURI* base, SerdURI* out) const size_t len = serd_uri_string_length(&abs_uri); uint8_t* buf = malloc(len + 1); - SerdNode node = { SERD_URI, len + 1, len, buf }; // FIXME: UTF-8 + SerdNode node = { buf, len + 1, len, SERD_URI }; // FIXME: UTF-8 uint8_t* ptr = buf; const size_t actual_len = serd_uri_serialise(&abs_uri, string_sink, &ptr); |