Explorar el Código

Fix linux_native long to int32 warnings (#15192)

Tanguy Pruvot hace 5 años
padre
commit
ec3f29a33a
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4
    4
      Marlin/src/module/planner.cpp

+ 4
- 4
Marlin/src/module/planner.cpp Ver fichero

@@ -2584,10 +2584,10 @@ bool Planner::buffer_segment(const float &a, const float &b, const float &c, con
2584 2584
   // The target position of the tool in absolute steps
2585 2585
   // Calculate target position in absolute steps
2586 2586
   const int32_t target[ABCE] = {
2587
-    LROUND(a * settings.axis_steps_per_mm[A_AXIS]),
2588
-    LROUND(b * settings.axis_steps_per_mm[B_AXIS]),
2589
-    LROUND(c * settings.axis_steps_per_mm[C_AXIS]),
2590
-    LROUND(e * settings.axis_steps_per_mm[E_AXIS_N(extruder)])
2587
+    int32_t(LROUND(a * settings.axis_steps_per_mm[A_AXIS])),
2588
+    int32_t(LROUND(b * settings.axis_steps_per_mm[B_AXIS])),
2589
+    int32_t(LROUND(c * settings.axis_steps_per_mm[C_AXIS])),
2590
+    int32_t(LROUND(e * settings.axis_steps_per_mm[E_AXIS_N(extruder)]))
2591 2591
   };
2592 2592
 
2593 2593
   #if HAS_POSITION_FLOAT

Loading…
Cancelar
Guardar