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&, in


From: strk
Subject: Re: [Gnash-dev] action.cpp:1272: error: call of overloaded `pow(int&, int)' is ambiguous
Date: Wed, 19 Apr 2006 10:10:42 +0200

Thank you. I manually changed action.cpp, but then I stop as
the other patches do not apply cleanly for me.
Could you try reproducing the patches after a cvs update ?

--strk;

On Wed, Apr 19, 2006 at 01:06:16AM +0200, Bastiaan Jacques wrote:
> And while we're at it, fix some more warnings:
> 
> 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 23:02:33 -0000
> @@ -3159,7 +3159,7 @@ void      action_buffer::execute(
>                           {
>                               int       frame = m_buffer[pc + 3] | 
> (m_buffer[pc + 4] << 8);
>                               UNUSED(frame);
> -                             IF_VERBOSE_ACTION(log_msg("-------------- with 
> block start: stack size is %d\n", with_stack.size()));
> +                             IF_VERBOSE_ACTION(log_msg("-------------- with 
> block start: stack size is %zd\n", with_stack.size()));
>                               if (with_stack.size() < 8)
>                                   {
>                                       int       block_length = m_buffer[pc + 
> 3] | (m_buffer[pc + 4] << 8);
> @@ -4171,7 +4171,7 @@ as_value* as_environment::local_register
> 
>      if (reg <= 0 || reg > (int) m_local_register.size())
>         {
> -           log_error("Invalid local register %d, stack only has %d 
> entries\n",
> +           log_error("Invalid local register %d, stack only has %zd 
> entries\n",
>                       reg, m_local_register.size());
> 
>             // Fallback: use global 0.
> Index: server/array.cpp
> ===================================================================
> RCS file: /sources/gnash/gnash/server/array.cpp,v
> retrieving revision 1.15
> diff -p -u -r1.15 array.cpp
> --- server/array.cpp    9 Mar 2006 21:33:45 -0000       1.15
> +++ server/array.cpp    18 Apr 2006 23:02:34 -0000
> @@ -179,7 +179,7 @@ namespace gnash {
>                 // Get our index, log, then return result
>                 (*fn.result) = array->elements[array->elements.size()-1];
>                 array->elements.pop_back();
> -               IF_VERBOSE_ACTION(log_msg("calling array pop, result:%s, new 
> array size:%d\n",fn.result->to_string(),array->elements.size()));
> +               IF_VERBOSE_ACTION(log_msg("calling array pop, result:%s, new 
> array size:%zd\n",fn.result->to_string(),array->elements.size()));
>         }
> 
>         // Callback to pop a value from the front of an array
> @@ -198,7 +198,7 @@ namespace gnash {
>                 // Get our index, log, then return result
>                 (*fn.result) = array->elements[0];
>                 array->elements.pop_front();
> -               IF_VERBOSE_ACTION(log_msg("calling array shift, result:%s, 
> new array size:%d\n",fn.result->to_string(),array->elements.size()));
> +               IF_VERBOSE_ACTION(log_msg("calling array shift, result:%s, 
> new array size:%zd\n",fn.result->to_string(),array->elements.size()));
>         }
> 
>         // Callback to reverse the position of the elements in an array
> @@ -217,7 +217,7 @@ namespace gnash {
>                         array->elements[j] = temp;
>                 }
> 
> -               IF_VERBOSE_ACTION(log_msg("calling array reverse on array 
> with size:%d\n",array->elements.size()));
> +               IF_VERBOSE_ACTION(log_msg("calling array reverse on array 
> with size:%zd\n",array->elements.size()));
> 
>                 // result is undefined
>                 fn.result->set_undefined();
> @@ -313,7 +313,7 @@ namespace gnash {
>                         // if it's still negative, this is a problem
>                         if (startindex < 0 || startindex > 
> int(array->elements.size()))
>                         {
> -                               IF_VERBOSE_ACTION(log_error("bad startindex 
> sent to array_slice! startindex: %s, Length: %d",
> +                               IF_VERBOSE_ACTION(log_error("bad startindex 
> sent to array_slice! startindex: %s, Length: %zd",
>                                         
> fn.arg(0).to_string(),array->elements.size()));
>                                 return;
>                         }
> @@ -327,7 +327,7 @@ namespace gnash {
>                                 endindex++;
>                                 if (endindex < 0)
>                                 {
> -                                       IF_VERBOSE_ACTION(log_error("bad 
> endindex sent to array_slice! endindex: %s, length: %d",
> +                                       IF_VERBOSE_ACTION(log_error("bad 
> endindex sent to array_slice! endindex: %s, length: %zd",
>                                                 
> fn.arg(1).to_string(),array->elements.size()));
>                                         return;
>                                 }
> Index: server/button.cpp
> ===================================================================
> RCS file: /sources/gnash/gnash/server/button.cpp,v
> retrieving revision 1.9
> diff -p -u -r1.9 button.cpp
> --- server/button.cpp   29 Mar 2006 05:42:41 -0000      1.9
> +++ server/button.cpp   18 Apr 2006 23:02:34 -0000
> @@ -891,7 +891,7 @@ namespace gnash {
>                         log_msg("       out_point = %d\n", m_out_point);
> 
>                         log_msg("       loop_count = %d\n", m_loop_count);
> -                       log_msg("       envelope size = %d\n", 
> m_envelopes.size());
> +                       log_msg("       envelope size = %zd\n", 
> m_envelopes.size());
>                 );
>         }
> 
> Index: server/fontlib.cpp
> ===================================================================
> RCS file: /sources/gnash/gnash/server/fontlib.cpp,v
> retrieving revision 1.5
> diff -p -u -r1.5 fontlib.cpp
> --- server/fontlib.cpp  26 Feb 2006 21:44:53 -0000      1.5
> +++ server/fontlib.cpp  18 Apr 2006 23:02:35 -0000
> @@ -1142,7 +1142,7 @@ namespace fontlib {
>                 if (nf != (int) fonts.size())
>                 {
>                         // Font counts must match!
> -                       log_error("error: mismatched font count (read %d, 
> expected %d) in cached font data\n", nf, fonts.size());
> +                       log_error("error: mismatched font count (read %d, 
> expected %zd) in cached font data\n", nf, fonts.size());
>                         in->go_to_end();
>                         goto error_exit;
>                 }
> Index: server/shm.cpp
> ===================================================================
> RCS file: /sources/gnash/gnash/server/shm.cpp,v
> retrieving revision 1.8
> diff -p -u -r1.8 shm.cpp
> --- server/shm.cpp      9 Mar 2006 19:29:06 -0000       1.8
> +++ server/shm.cpp      18 Apr 2006 23:02:35 -0000
> @@ -277,7 +277,7 @@ Shm::attach(char const *filespec, bool n
>  #endif // end of HAVE_SHM_OPEN
>  #endif // end of FLAT_ADDR_SPACE
> 
> -       log_msg("Opened Shared Memory segment \"%s\": %d bytes at %p.\n",
> +       log_msg("Opened Shared Memory segment \"%s\": %zd bytes at %p.\n",
>                 filespec, _size, _addr);
>         }
> 
> Index: server/xmlnode.cpp
> ===================================================================
> RCS file: /sources/gnash/gnash/server/xmlnode.cpp,v
> retrieving revision 1.8
> diff -p -u -r1.8 xmlnode.cpp
> --- server/xmlnode.cpp  30 Mar 2006 19:12:53 -0000      1.8
> +++ server/xmlnode.cpp  18 Apr 2006 23:02:35 -0000
> @@ -279,7 +279,7 @@ XMLNode::toString()
>  as_object *
>  XMLNode::previousSibling(int x)
>  {
> -    log_msg("%s: partially implemented. %d objects\n",
> +    log_msg("%s: partially implemented. %zd objects\n",
>             __PRETTY_FUNCTION__,  _objects.size());
>      if (_objects.size() > 0) {
>         return _objects[x-1];
> 
> 
> _______________________________________________
> Gnash-dev mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/gnash-dev

-- 

 /"\    ASCII Ribbon Campaign
 \ /    Respect for low technology.
  X     Keep e-mail messages readable by any computer system.
 / \    Keep it ASCII. 





reply via email to

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