diff options
| author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-10-12 09:51:53 +0000 | 
|---|---|---|
| committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-10-12 09:51:53 +0000 | 
| commit | 89e9beac74c82e38fd07db9ea30a82d821240c91 (patch) | |
| tree | 1690ecffb3b77a480e7b0c13ebce77f2a4ab6275 /editors/MathPlanner/files/patch-Exp_object.cpp | |
| parent | Add WWW, which I found while making the distfile fetcheable again (diff) | |
Fix build on 4-stable
Fix pkg-plist
PR:		ports/71875
Submitted by:	Ports Fury
Diffstat (limited to 'editors/MathPlanner/files/patch-Exp_object.cpp')
| -rw-r--r-- | editors/MathPlanner/files/patch-Exp_object.cpp | 22 | 
1 files changed, 22 insertions, 0 deletions
| diff --git a/editors/MathPlanner/files/patch-Exp_object.cpp b/editors/MathPlanner/files/patch-Exp_object.cpp new file mode 100644 index 000000000000..76a2aa51fd61 --- /dev/null +++ b/editors/MathPlanner/files/patch-Exp_object.cpp @@ -0,0 +1,22 @@ +--- src/Exp_object.cpp.orig	Thu Dec 12 11:37:52 2002 ++++ src/Exp_object.cpp	Sun Sep 12 00:20:21 2004 +@@ -28,7 +28,7 @@ +  +   if (Opr==0) { +   if (val.type==MN_REAL && eval.type==MN_REAL) +-			{ value.SetReal(pow(val.R,eval.R)); return(value); } ++			{ value.SetReal(pow(val.mpl.m.R,eval.mpl.m.R)); return(value); } +   else +   if ((val.type==MN_COMPLEX || val.type==MN_REAL) && (eval.type==MN_COMPLEX || eval.type==MN_REAL)) +      { value.SetComplex(mpl_cnpower(val.Complex(),eval.Complex())); return(value); } +@@ -46,8 +46,8 @@ +   eval=Inner->Calculate(); +  +   if (eval.type==MN_REAL) { +-  if (Opr==1) { value.SetReal(pow(NEPER,eval.R)); return(value); } +-  if (Opr==2) { value.SetReal(pow(10,eval.R)); return(value); } ++  if (Opr==1) { value.SetReal(pow(NEPER,eval.mpl.m.R)); return(value); } ++  if (Opr==2) { value.SetReal(pow(10,eval.mpl.m.R)); return(value); } +   } +   if (eval.type==MN_COMPLEX) { +   if (Opr==1) { value.SetComplex(mpl_ce(eval.Complex())); return(value); } | 
