1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-23 12:04:19 +00:00

🧑‍💻 Fix type warning (#25149)

This commit is contained in:
ellensp 2022-12-31 16:55:15 +13:00 committed by Scott Lahteine
parent f13d7f27d1
commit c5f95bfe97

View File

@ -3271,7 +3271,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);
}