summaryrefslogtreecommitdiff
path: root/noncore/unsupported/qpdf/fixed.h
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/qpdf/fixed.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/unsupported/qpdf/fixed.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/unsupported/qpdf/fixed.h b/noncore/unsupported/qpdf/fixed.h
index d073421..ec0e696 100644
--- a/noncore/unsupported/qpdf/fixed.h
+++ b/noncore/unsupported/qpdf/fixed.h
@@ -166,14 +166,14 @@ template <unsigned int SH> inline fixed<SH> fabs ( const fixed<SH> &f )
// roughly from QPE / qmath.h
template <unsigned int SH> inline fixed<SH> sqrt ( const fixed<SH> &f )
{
if ( f. m_f <= 0 )
return fixed<SH> ( 0, true );
- fixed<SH>::fix_t a0 = 0;
- fixed<SH>::fix_t a1 = f. m_f; // take value as first approximation
+ typename fixed<SH>::fix_t a0 = 0;
+ typename fixed<SH>::fix_t a1 = f. m_f; // take value as first approximation
do {
a0 = a1;
a1 = ( a0 + fixed<SH>::div ( f. m_f, a0 )) >> 1;
} while ( abs ( fixed<SH>::div ( a1 - a0, a1 )) > 1 );