summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sord/sord.h6
-rw-r--r--src/sord.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/sord/sord.h b/sord/sord.h
index 1258471..c2c69a4 100644
--- a/sord/sord.h
+++ b/sord/sord.h
@@ -148,7 +148,7 @@ SORD_API
SordNode
sord_new_uri_counted(SordWorld world,
const uint8_t* str,
- int str_len);
+ size_t str_len);
/**
Find a blank, creating a new one if necessary iff @a create is true.
@@ -166,7 +166,7 @@ SORD_API
SordNode
sord_new_blank_counted(SordWorld world,
const uint8_t* str,
- int str_len);
+ size_t str_len);
/**
Find a literal, creating a new one if necessary iff @a create is true.
@@ -188,7 +188,7 @@ SordNode
sord_new_literal_counted(SordWorld world,
SordNode datatype,
const uint8_t* str,
- int str_len,
+ size_t str_len,
const char* lang,
uint8_t lang_len);
diff --git a/src/sord.c b/src/sord.c
index 18af8b6..94c4bde 100644
--- a/src/sord.c
+++ b/src/sord.c
@@ -848,7 +848,7 @@ sord_add_node(SordWorld world, SordNode node)
}
SordNode
-sord_new_uri_counted(SordWorld world, const uint8_t* str, int str_len)
+sord_new_uri_counted(SordWorld world, const uint8_t* str, size_t str_len)
{
SordNode node = sord_lookup_name(world, str, str_len);
if (node) {
@@ -868,7 +868,7 @@ sord_new_uri(SordWorld world, const uint8_t* str)
}
SordNode
-sord_new_blank_counted(SordWorld world, const uint8_t* str, int str_len)
+sord_new_blank_counted(SordWorld world, const uint8_t* str, size_t str_len)
{
SordNode node = sord_lookup_name(world, str, str_len);
if (node) {
@@ -889,7 +889,7 @@ sord_new_blank(SordWorld world, const uint8_t* str)
SordNode
sord_new_literal_counted(SordWorld world, SordNode type,
- const uint8_t* str, int str_len,
+ const uint8_t* str, size_t str_len,
const char* lang, uint8_t lang_len)
{
SordNode node = sord_lookup_literal(world, type, str, str_len, lang, lang_len);