[babl] extensions: simple avoid unneccesary double



commit f9765f89aad274fb7ce1762bc8e2a2e3a33792dd
Author: Øyvind Kolås <pippin gimp org>
Date:   Tue Mar 22 16:44:18 2022 +0100

    extensions: simple avoid unneccesary double

 extensions/simple.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/extensions/simple.c b/extensions/simple.c
index de5999c3f..549cec02d 100644
--- a/extensions/simple.c
+++ b/extensions/simple.c
@@ -190,7 +190,7 @@ float_to_u32_x1 (const Babl    *conversion,
   long n = samples;
   while (n--)
     {
-      double r = src[0];
+      float r = src[0];
             
       dst[0] = (r >= 1.0f) ? 0xFFFFFFFF : ((r <= 0.0f) ? 0x0 : 0xFFFFFFFF * r + 0.5f);
       


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]