svn commit: r541233 - head/math/suitesparse/files
Thierry Thomas
thierry at FreeBSD.org
Sat Jul 4 18:43:31 UTC 2020
Author: thierry
Date: Sat Jul 4 18:43:31 2020
New Revision: 541233
URL: https://svnweb.freebsd.org/changeset/ports/541233
Log:
Fix an implicit conversion from long to double.
PR: 247763
Submitted by: rsmith (at) xs4all.nl
Added:
head/math/suitesparse/files/
head/math/suitesparse/files/patch-SLIP__LU_Source_slip__internal.h (contents, props changed)
Added: head/math/suitesparse/files/patch-SLIP__LU_Source_slip__internal.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/suitesparse/files/patch-SLIP__LU_Source_slip__internal.h Sat Jul 4 18:43:31 2020 (r541233)
@@ -0,0 +1,16 @@
+--- SLIP_LU/Source/slip_internal.h.orig 2020-07-03 16:11:39 UTC
++++ SLIP_LU/Source/slip_internal.h
+@@ -660,11 +660,11 @@ static inline int64_t slip_cast_double_to_int64 (doubl
+ {
+ return (0) ;
+ }
+- else if (x > INT64_MAX)
++ else if (x > (double)INT64_MAX)
+ {
+ return (INT64_MAX) ;
+ }
+- else if (x < INT64_MIN)
++ else if (x < (double)INT64_MIN)
+ {
+ return (INT64_MIN) ;
+ }
More information about the svn-ports-all
mailing list