summaryrefslogtreecommitdiffstats
path: root/jv.c
diff options
context:
space:
mode:
authorNicolas Williams <nico@cryptonector.com>2013-11-28 14:53:05 -0600
committerNicolas Williams <nico@cryptonector.com>2013-12-04 18:21:38 -0600
commitef41d1cb57b521334d3d8f771c9417881d6e0c94 (patch)
treeefbe6acc88bcf9c96b22fbae5d1957f7bb150b32 /jv.c
parent08b4a34a8ece5917baf25d2b594f03d43aa1c437 (diff)
Use uint32_t for codepoint in jv_string_append_codepoint()
Diffstat (limited to 'jv.c')
-rw-r--r--jv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/jv.c b/jv.c
index 92c48604..a1e98026 100644
--- a/jv.c
+++ b/jv.c
@@ -658,7 +658,7 @@ jv jv_string_append_buf(jv a, const char* buf, int len) {
return a;
}
-jv jv_string_append_codepoint(jv a, int c) {
+jv jv_string_append_codepoint(jv a, uint32_t c) {
char buf[5];
int len = jvp_utf8_encode(c, buf);
jvp_string_append(&a.val.nontrivial, buf, len);