summaryrefslogtreecommitdiff
path: root/math/ump/files/patch-src__real.cpp
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2015-02-06 18:25:04 +0000
committerJohn Marino <marino@FreeBSD.org>2015-02-06 18:25:04 +0000
commitd5bfd7b9e826b9af38534edc3c2baf530c408d08 (patch)
tree4bcd82284e99583285de0dda0445f18058ad9cb1 /math/ump/files/patch-src__real.cpp
parenttextproc/apache-solr: Reset maintainer (diff)
math/ump: Finish original "fix on current"
Back on 10 OCT 2014 when the PR was opened, this unmaintained port didn't build on current. The PR stagnanted due to an unanswered question and the port was eventually fixed by amdmi3 on 21 NOV. Let's go ahead and make the remaining changes which include adding a license (GPLv2), defining desktop entries, tweaking pkg-descr, and make real_frac function match its changed header (for clang). PR: 194497 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=378549
Diffstat (limited to 'math/ump/files/patch-src__real.cpp')
-rw-r--r--math/ump/files/patch-src__real.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/math/ump/files/patch-src__real.cpp b/math/ump/files/patch-src__real.cpp
new file mode 100644
index 000000000000..48bdd276a8ef
--- /dev/null
+++ b/math/ump/files/patch-src__real.cpp
@@ -0,0 +1,11 @@
+--- src/real.cpp.orig
++++ src/real.cpp
+@@ -764,7 +764,7 @@
+ }
+
+ // converts a Real to a fraction
+-Real frac(const Real &val, int32 highest_bottom_value) throw(error_obj)
++Real frac(const Real &val, int32 highest_bottom_value = 1000) throw(error_obj)
+ {
+ if( highest_bottom_value < 1 )
+ THROW_ERROR( ErrorType_Domain, _("Domain error: Value out of range.") );