llvmpipe: add 'f' suffix to 1.0 in fixed_to_float()
authorBrian Paul <brianp@vmware.com>
Thu, 28 Mar 2013 23:17:26 +0000 (17:17 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 28 Mar 2013 23:17:26 +0000 (17:17 -0600)
src/gallium/drivers/llvmpipe/lp_setup_tri.c

index 97a76d85c59a1fbe40a99932e40bad2464da6836..45ac6a79ada81faf17e9b2b275b45c83f64d1bbc 100644 (file)
@@ -54,7 +54,7 @@ subpixel_snap(float a)
 static INLINE float
 fixed_to_float(int a)
 {
-   return a * (1.0 / FIXED_ONE);
+   return a * (1.0f / FIXED_ONE);
 }