From owner-svn-ports-all@freebsd.org Tue Nov 29 23:01:50 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D0878C5C0DD; Tue, 29 Nov 2016 23:01:50 +0000 (UTC) (envelope-from stephen@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 78EE2185B; Tue, 29 Nov 2016 23:01:50 +0000 (UTC) (envelope-from stephen@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uATN1njL097417; Tue, 29 Nov 2016 23:01:49 GMT (envelope-from stephen@FreeBSD.org) Received: (from stephen@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uATN1ndP097416; Tue, 29 Nov 2016 23:01:49 GMT (envelope-from stephen@FreeBSD.org) Message-Id: <201611292301.uATN1ndP097416@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: stephen set sender to stephen@FreeBSD.org using -f From: Stephen Montgomery-Smith Date: Tue, 29 Nov 2016 23:01:49 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r427405 - head/math/octave-forge-interval/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2016 23:01:50 -0000 Author: stephen Date: Tue Nov 29 23:01:49 2016 New Revision: 427405 URL: https://svnweb.freebsd.org/changeset/ports/427405 Log: - Another attempt to get port to build on FreeBSD <=9. - No portrevision bump, because I don't believe this change will effect the final result on other OS versions. Modified: head/math/octave-forge-interval/files/patch-mpfr__to__string__d.cc Modified: head/math/octave-forge-interval/files/patch-mpfr__to__string__d.cc ============================================================================== --- head/math/octave-forge-interval/files/patch-mpfr__to__string__d.cc Tue Nov 29 23:00:58 2016 (r427404) +++ head/math/octave-forge-interval/files/patch-mpfr__to__string__d.cc Tue Nov 29 23:01:49 2016 (r427405) @@ -9,3 +9,21 @@ std::numeric_limits ::min_exponent - 1 - exponent); +@@ -219,7 +219,7 @@ DEFUN_DLD (mpfr_to_string_d, args, nargo + + // shift mantissa by 32 bits to format the first part + // sprintf (... "%x" ...) requires an unsigned 4-byte int +- mantissa *= std::pow (2.0, sizeof (uint32_t) * 8); ++ mantissa *= uint64_t (1) << (sizeof (uint32_t) * 8); + uint32_t first_part = static_cast (mantissa); + + // remove first mantissa part +@@ -227,7 +227,7 @@ DEFUN_DLD (mpfr_to_string_d, args, nargo + + // shift mantissa by remaining 20 bits such that + // it is an integer +- mantissa *= std::pow (2.0, ++ mantissa *= uint64_t (1) << ( + std::numeric_limits + ::digits - 1 - 32); + uint32_t second_part = static_cast (mantissa);