🧑‍💻 Fix type warning (#25149)

This commit is contained in:
ellensp
2022-12-31 16:55:15 +13:00
committed by GitHub
parent f17f921b68
commit 88242e0b5c

View File

@@ -3313,7 +3313,7 @@ void MarlinSettings::reset() {
#if ENABLED(DISTINCT_E_FACTORS)
constexpr float linAdvanceK[] = ADVANCE_K;
EXTRUDER_LOOP() {
const float a = linAdvanceK[_MAX(e, COUNT(linAdvanceK) - 1)];
const float a = linAdvanceK[_MAX(uint8_t(e), COUNT(linAdvanceK) - 1)];
planner.extruder_advance_K[e] = a;
TERN_(ADVANCE_K_EXTRA, other_extruder_advance_K[e] = a);
}