freebsd-ports/math/ump/files/patch-src__real.cpp
John Marino d5bfd7b9e8 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
2015-02-06 18:25:04 +00:00

11 lines
363 B
C++

--- 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.") );