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:
Kenneth Raplee
2026-08-01 03:49:28 +00:00
committed by GitHub
parent 477208a969
commit 80e64f80a6

View File

@@ -184,7 +184,7 @@ struct LayerResult {
// It is used for the pressure equalizer because it needs to buffer one layer back.
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 {