Hello!

2015-06-02 10:07 GMT+06:00 Pengfei Hao <int...@gmail.com>:
> By the way, I hope you could fix another type bug I reported before, and
> create a new release. So I could provide a formal rpm ready package for
> openSUSE users.
>
>
> In ETL/ETL/_clock_system.h
>
> 60 class clock_desc_sys_clock
> 61 {
> 62 public:
> 63     typedef float value_type;
> 64
> 65     inline static bool realtime()
> 66     { return false; }
>
> In synfig-studio/src/gui/states/state_width.cpp
>
>
>         if(event.key == EVENT_WORKAREA_MOUSE_BUTTON_DRAG)
>         {
>             dtime = min(1/15.0,clocktime());
>         }
>
>
>
> clocktime is float, while 1/15.0 is double.
>
> This error line gave me some hint:
> /usr/include/c++/4.8/bits/stl_algobase.h:193:5: note:   template argument
> deduction/substitution failed:
> states/state_width.cpp:524:34: note:   deduced conflicting types for
> parameter 'const _Tp' ('double' and
> 'etl::clock_base<etl::clock_desc_sys_clock>::value_type {aka float}')
>
> The problems happend to that min(double, float) not there.
>
> A quick fix is to change 1/15.0 to (float)(1/15.0), but I recommend to use
> some float variables to hold this 1/15.0, to make it at least code level
> configurable.

I have applied the workaround you suggested. Unfortunately, I have no
time for a better fix.

Currently I am busy with preparing the new Synfig Training Course. I
plan to publish new bugfix release as soon as I finish the course.
Your work on OpenSuse packages is much appreciated! Thank you!

Bset Regards,
Konstantin.

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to