Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
misc.c
Log Message:
Add cast.
===================================================================
RCS file: /cvs/e/e16/e/src/misc.c,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -3 -r1.82 -r1.83
--- misc.c 13 Feb 2008 21:31:29 -0000 1.82
+++ misc.c 10 May 2008 23:31:50 -0000 1.83
@@ -136,11 +136,11 @@
{
case 1: /* Sinuoidal - half cycle */
x = x / l - 0.5; /* x: -0.5 -> 0.5 */
- x = 0.5 * (1. + sin(x * M_PI));
+ x = (float)(0.5 * (1. + sin(x * M_PI)));
break;
case 2: /* Sinuoidal - quarter cycle */
x = x / l; /* x: 0 -> 1 */
- x = sin(x * M_PI / 2);
+ x = (float)sin(x * M_PI / 2);
break;
}
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs