diff --git a/Common/Options.cpp b/Common/Options.cpp
index 65f8012fd6a312399eb93ddd733b6db56f223914..e8b3f4d2ed44fce641a79da851adbc5483537743 100644
--- a/Common/Options.cpp
+++ b/Common/Options.cpp
@@ -4102,7 +4102,7 @@ double opt_geometry_extrude_return_lateral(OPT_ARGS_NUM)
 double opt_geometry_scaling_factor(OPT_ARGS_NUM)
 {
   if(action & GMSH_SET)
-    CTX::instance()->geom.scalingFactor = (int)val;
+    CTX::instance()->geom.scalingFactor = val;
   return CTX::instance()->geom.scalingFactor;
 }