mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-01 15:22:21 +00:00
Fix 32-bit build in LayerResult::make_nop_layer_result (#15036)
LayerResult's second field is typed size_t, so std::numeric_limits::max should also use size_t and not something related to coordinates for the layer_id.
This commit is contained in:
@@ -184,7 +184,7 @@ struct LayerResult {
|
|||||||
// It is used for the pressure equalizer because it needs to buffer one layer back.
|
// It is used for the pressure equalizer because it needs to buffer one layer back.
|
||||||
bool nop_layer_result { false };
|
bool nop_layer_result { false };
|
||||||
|
|
||||||
static LayerResult make_nop_layer_result() { return {"", std::numeric_limits<coord_t>::max(), false, false, true}; }
|
static LayerResult make_nop_layer_result() { return {"", std::numeric_limits<size_t>::max(), false, false, true}; }
|
||||||
};
|
};
|
||||||
|
|
||||||
class GCode {
|
class GCode {
|
||||||
|
|||||||
Reference in New Issue
Block a user