Author: Carlos Lopez <[email protected]>
Date: Sat Sep 10 17:58:14 2011 +0200
Use fmod instead of modf to see if it can solve the 32 bits bug.
---
synfig-core/src/synfig/widthpoint.cpp | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/synfig-core/src/synfig/widthpoint.cpp
b/synfig-core/src/synfig/widthpoint.cpp
index 96912b5..63e7e41 100644
--- a/synfig-core/src/synfig/widthpoint.cpp
+++ b/synfig-core/src/synfig/widthpoint.cpp
@@ -75,12 +75,11 @@ Real
WidthPoint::get_norm_position()const
{
Real pos(get_position());
- Real integer;
if(pos>=0.0 && pos <=1.0)
return pos;
else
{
- Real ret(modf(pos, &integer));
+ Real ret(fmod(pos, 1.0));
return ret>=0.0?ret:(1.0+ret);
}
}
------------------------------------------------------------------------------
Malware Security Report: Protecting Your Business, Customers, and the
Bottom Line. Protect your business and customers by understanding the
threat from malware and how it can impact your online business.
http://www.accelacomm.com/jaw/sfnl/114/51427462/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl