diff --git a/MagickCore/enhance.c b/MagickCore/enhance.c
index 1fc09ce..e3de1d9 100644
--- a/MagickCore/enhance.c
+++ b/MagickCore/enhance.c
@@ -2133,7 +2133,7 @@
   if (pixel < black_point)
     return(0.0);
   if (pixel > white_point)
-    return(white_point);
+    return((MagickRealType) QuantumRange);
   scale=(white_point != black_point) ? 1.0/(white_point-black_point) : 1.0;
   level_pixel=(MagickRealType) QuantumRange*pow(scale*((double) pixel-
     black_point),1.0/gamma);