diff --git a/src/editing_tools/EditingTools.vala b/src/editing_tools/EditingTools.vala
index d160f235..54a97309 100644
--- a/src/editing_tools/EditingTools.vala
+++ b/src/editing_tools/EditingTools.vala
@@ -2506,7 +2506,7 @@ public class AdjustTool : EditingTool {
     private PixelTransformer transformer = null;
     private PixelTransformer histogram_transformer = null;
     private PixelTransformationBundle transformations = null;
-    private float[] fp_pixel_cache = null;
+    private double[] fp_pixel_cache = null;
     private bool disable_histogram_refresh = false;
     private OneShotScheduler? temperature_scheduler = null;
     private OneShotScheduler? tint_scheduler = null;
@@ -2969,7 +2969,7 @@ public class AdjustTool : EditingTool {
         int source_rowstride = source.get_rowstride();
         unowned uchar[] source_pixels = source.get_pixels();
 
-        fp_pixel_cache = new float[3 * source_width * source_height];
+        fp_pixel_cache = new double[3 * source_width * source_height];
         int cache_pixel_index = 0;
         float INV_255 = 1.0f / 255.0f;
 
