gnash-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] action.cpp:1272: error: call of overloaded `pow(int&, i


From: Bastiaan Jacques
Subject: Re: [Gnash-dev] action.cpp:1272: error: call of overloaded `pow(int&, int)' is ambiguous
Date: Wed, 19 Apr 2006 00:23:33 +0200
User-agent: KMail/1.9.1

On Tuesday 18 April 2006 23:51, strk wrote:
> Follows up on this. I committed a patch that allows
> a successful build, still I have this warning:
> 
> action.cpp: In function `void gnash::as_global_parseint(const gnash::fn_call&)
>    ':
> action.cpp:1281: warning: converting to `int' from `double'
 
pow() returns double.


Index: server/action.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/action.cpp,v
retrieving revision 1.62
diff -p -u -r1.62 action.cpp
--- server/action.cpp   11 Apr 2006 17:11:09 -0000      1.62
+++ server/action.cpp   18 Apr 2006 22:21:28 -0000
@@ -1278,7 +1278,7 @@ void      as_global_parseint(const fn_call& f

     for (i=0;i<numdigits;i++)
        {
-           result += digits.find(input[i]) * pow(base, numdigits - i - 1);
+           result += digits.find(input[i]) * (int)pow(base, numdigits - i - 1);
        }

     if (bNegative)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]