Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2020 20:25:01 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r526713 - head/devel/json-c/files
Message-ID:  <202002212025.01LKP1VS048368@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002212025.01LKP1VS048368>