[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60169] error: call of overloaded pow is ambig
From: |
Michele |
Subject: |
[Octave-bug-tracker] [bug #60169] error: call of overloaded pow is ambiguous |
Date: |
Thu, 4 Mar 2021 19:46:55 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; SunOS sun4v; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #2, bug #60169 (project octave):
[comment #1 comment #1:]
> Please try the attached patch. If it solves the problem, I'll push the
change. Thanks.
>
> (file #50987)
I guess it partly worked.
bash-4.3$ gpatch -p1 < pow-diffs.txt
patching file libgui/graphics/Table.cc
Hunk #1 FAILED at 80.
Hunk #2 succeeded at 93 (offset 1 line).
Hunk #3 FAILED at 100.
2 out of 3 hunks FAILED -- saving rejects to file
libgui/graphics/Table.cc.rej
bash-4.3$ more libgui/graphics/Table.cc.rej
--- libgui/graphics/Table.cc
+++ libgui/graphics/Table.cc
@@ -80,11 +80,13 @@
char format = 'f',
\ int precision = 4)
\ {
\+ type ten = 10;
\ if (format == 'n')
\ {
\ if (d == floor (d))
\ return QString::number (d, 'g', precision);
\- else if (d <= pow (10, precision - 1) && d > pow (10, 1 -
precision)) \+ else if (d <= pow (ten, precision - 1)
\+ && d > pow (ten, 1 - precision))
\ return QString::number (d, 'f', precision);
\ else
\ return QString::number (d, 'e', precision);
\@@ -100,7 +102,7 @@
else if (format == 'E')
\ {
\ int exponent = floor (log10 (d) / 3) * 3;
\- d *= pow (10, -exponent);
\+ d *= pow (ten, -exponent);
\ return QString::number (d,
\ 'f',
\ precision - floor (log10 (d)) - 1) +
\bash-4.3$
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60169>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #60169] error: call of overloaded pow is ambiguous, Michele, 2021/03/04
- [Octave-bug-tracker] [bug #60169] error: call of overloaded pow is ambiguous, John W. Eaton, 2021/03/04
- [Octave-bug-tracker] [bug #60169] error: call of overloaded pow is ambiguous,
Michele <=
- [Octave-bug-tracker] [bug #60169] error: call of overloaded pow is ambiguous, John W. Eaton, 2021/03/05
- [Octave-bug-tracker] [bug #60169] error: call of overloaded pow is ambiguous, Michele, 2021/03/05
- [Octave-bug-tracker] [bug #60169] error: call of overloaded pow is ambiguous, John W. Eaton, 2021/03/05
- [Octave-bug-tracker] [bug #60169] error: call of overloaded pow is ambiguous, Michele, 2021/03/05
- [Octave-bug-tracker] [bug #60169] error: call of overloaded pow is ambiguous, Rik, 2021/03/09
- [Octave-bug-tracker] [bug #60169] error: call of overloaded pow is ambiguous, John W. Eaton, 2021/03/09