From d218032448d4c312af60f4e750596d160db3782d Mon Sep 17 00:00:00 2001 From: Cedric Pinson Date: Thu, 25 Mar 2010 20:20:10 +0000 Subject: [PATCH] Fix compile issue t = fmod(t, (float)_duration); --- src/osgAnimation/Animation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgAnimation/Animation.cpp b/src/osgAnimation/Animation.cpp index cd1a4258e..1ffd1993c 100644 --- a/src/osgAnimation/Animation.cpp +++ b/src/osgAnimation/Animation.cpp @@ -126,7 +126,7 @@ bool Animation::update (double time, int priority) else { int tt = (int) (t / _duration); - t = fmod(t, (float)_duration); + t = fmod(t, _duration); if (tt%2) t = _duration - t; }