From: James Myatt Date: Fri, 9 Oct 2015 22:24:55 +0000 (+0100) Subject: Fix build in Visual Studio X-Git-Tag: json-c-0.13-20171207~180^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F199%2Fhead;p=thirdparty%2Fjson-c.git Fix build in Visual Studio --- diff --git a/json_object.c b/json_object.c index 6ec67a0f..9ac22a30 100644 --- a/json_object.c +++ b/json_object.c @@ -432,7 +432,7 @@ void json_object_object_add_ex(struct json_object* jso, lh_table_insert_w_hash(jso->o.c_object, k, val, hash, opts); return; } - existing_value = (void *)existing_entry->v; + existing_value = (json_object *)existing_entry->v; if (existing_value) json_object_put(existing_value); existing_entry->v = val; @@ -546,7 +546,7 @@ static int json_object_int_to_json_string(struct json_object* jso, int level, int flags) { - return sprintbuf(pb, "%"PRId64, jso->o.c_int64); + return sprintbuf(pb, "%" PRId64, jso->o.c_int64); } struct json_object* json_object_new_int(int32_t i)