diff options
author | pav <pav@FreeBSD.org> | 2008-01-29 05:10:18 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2008-01-29 05:10:18 +0800 |
commit | 4f4a989037e51f8d2b39e93f75297fbfc948e2b5 (patch) | |
tree | 98ef62a092177d253e6fd4f1f8746a9b13b14812 /science/gchemutils/files | |
parent | 78c5cc7bd7520966667bb228b55e7d4f6288b284 (diff) | |
download | freebsd-ports-gnome-4f4a989037e51f8d2b39e93f75297fbfc948e2b5.tar.gz freebsd-ports-gnome-4f4a989037e51f8d2b39e93f75297fbfc948e2b5.tar.zst freebsd-ports-gnome-4f4a989037e51f8d2b39e93f75297fbfc948e2b5.zip |
- Update to 0.8.6
Diffstat (limited to 'science/gchemutils/files')
-rw-r--r-- | science/gchemutils/files/patch-gcu-formula.cc | 9 | ||||
-rw-r--r-- | science/gchemutils/files/patch-programs-gchemcalc.cc | 11 |
2 files changed, 0 insertions, 20 deletions
diff --git a/science/gchemutils/files/patch-gcu-formula.cc b/science/gchemutils/files/patch-gcu-formula.cc index dc3bde3c983f..faf7ff193571 100644 --- a/science/gchemutils/files/patch-gcu-formula.cc +++ b/science/gchemutils/files/patch-gcu-formula.cc @@ -20,12 +20,3 @@ using namespace gcu; parse_error::parse_error(const string& __arg, int start, int length) -@@ -448,7 +461,7 @@ - atom_weight = Element::GetElement ((*i).first)->GetWeight (atom_prec); - if (atom_prec == 0) - m_Artificial = true; -- delta += pow10 (-atom_prec) * (*i).second; -+ delta += pow (10.0, -atom_prec) * (*i).second; - m_Weight += atom_weight * (*i).second; - } - m_WeightPrec = (int) ceil (-log10 (delta) - 1e-5); diff --git a/science/gchemutils/files/patch-programs-gchemcalc.cc b/science/gchemutils/files/patch-programs-gchemcalc.cc deleted file mode 100644 index 04da29c3633e..000000000000 --- a/science/gchemutils/files/patch-programs-gchemcalc.cc +++ /dev/null @@ -1,11 +0,0 @@ ---- programs/calc/gchemcalc.cc.orig Sat Feb 25 18:35:50 2006 -+++ programs/calc/gchemcalc.cc Mon Mar 20 18:22:41 2006 -@@ -140,7 +140,7 @@ - } else { - if (prec < 0) { - // round the value to replace not significant figures by 0s. -- double offs = pow10 (prec); -+ double offs = pow (10.0, prec); - weight = rint (weight * offs) / offs; - } - format = artificial? g_strdup ("(%.0f)"): g_strdup ("%.0f"); |