svn commit: r526713 - head/devel/json-c/files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Fri Feb 21 20:25:02 UTC 2020
Author: sunpoet
Date: Fri Feb 21 20:25:00 2020
New Revision: 526713
URL: https://svnweb.freebsd.org/changeset/ports/526713
Log:
Fix build with Clang 10
PR: 244233
Submitted by: dim
Added:
head/devel/json-c/files/patch-json_object.c (contents, props changed)
Added: head/devel/json-c/files/patch-json_object.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/json-c/files/patch-json_object.c Fri Feb 21 20:25:00 2020 (r526713)
@@ -0,0 +1,14 @@
+--- json_object.c.orig 2020-02-18 20:12:20 UTC
++++ json_object.c
+@@ -698,9 +698,9 @@ int64_t json_object_get_int64(const struct json_object
+ case json_type_int:
+ return jso->o.c_int64;
+ case json_type_double:
+- if (jso->o.c_double >= INT64_MAX)
++ if (jso->o.c_double >= (double)INT64_MAX)
+ return INT64_MAX;
+- if (jso->o.c_double <= INT64_MIN)
++ if (jso->o.c_double <= (double)INT64_MIN)
+ return INT64_MIN;
+ return (int64_t)jso->o.c_double;
+ case json_type_boolean:
More information about the svn-ports-head
mailing list