Getting the "spaceball" demo to build properly in Windows
[freeglut] / progs / demos / spaceball / vmath.c
index 58f2c41..7ef3c25 100644 (file)
@@ -4,10 +4,10 @@
 quat_t quat_rotate(quat_t q, float angle, float x, float y, float z)\r
 {\r
   quat_t rq;\r
-  float half_angle = angle * 0.5;\r
-  float sin_half = sin(half_angle);\r
+  float half_angle = angle * 0.5f;\r
+  float sin_half = (float)sin(half_angle);\r
 \r
-  rq.w = cos(half_angle);\r
+  rq.w = (float)cos(half_angle);\r
   rq.x = x * sin_half;\r
   rq.y = y * sin_half;\r
   rq.z = z * sin_half;\r