diff options
author | David Robillard <d@drobilla.net> | 2011-04-28 03:42:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-28 03:42:36 +0000 |
commit | 688537cf5ccb709c23359eb855946bedd5b65fcf (patch) | |
tree | 6a690c182bcd11e7d85b5993c21b473b16470ee7 /src/sord.c | |
parent | b9fae06dc9459b7d3b87c561434ddc2ced821f87 (diff) | |
download | sord-688537cf5ccb709c23359eb855946bedd5b65fcf.tar.gz sord-688537cf5ccb709c23359eb855946bedd5b65fcf.tar.bz2 sord-688537cf5ccb709c23359eb855946bedd5b65fcf.zip |
Use size_t for node and triple counts.
git-svn-id: http://svn.drobilla.net/sord/trunk@97 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/sord.c')
-rw-r--r-- | src/sord.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -101,7 +101,7 @@ struct SordWorldImpl { GHashTable* names; ///< URI or blank node identifier string => ID GHashTable* langs; ///< Language tag => Interned language tag GHashTable* literals; ///< Literal => ID - SordCount n_nodes; ///< Number of nodes + size_t n_nodes; ///< Number of nodes }; /** Store */ @@ -114,7 +114,7 @@ struct SordModelImpl { */ GSequence* indices[NUM_ORDERS]; - SordCount n_quads; + size_t n_quads; }; /** Mode for searching or iteration */ @@ -632,13 +632,13 @@ sord_get_world(SordModel* sord) return sord->world; } -int +size_t sord_num_quads(const SordModel* sord) { return sord->n_quads; } -int +size_t sord_num_nodes(const SordWorld* world) { return world->n_nodes; @@ -1010,7 +1010,7 @@ sord_add(SordModel* sord, const SordQuad tup) sord_add_quad_ref(sord, tup[i]); ++sord->n_quads; - assert(sord->n_quads == g_sequence_get_length(sord->indices[SPO])); + assert(sord->n_quads == (size_t)g_sequence_get_length(sord->indices[SPO])); return true; } |