diff --git a/firmware/controllers/system/timer/single_timer_executor.cpp b/firmware/controllers/system/timer/single_timer_executor.cpp index 9b253aea4c..3275f33328 100644 --- a/firmware/controllers/system/timer/single_timer_executor.cpp +++ b/firmware/controllers/system/timer/single_timer_executor.cpp @@ -67,11 +67,12 @@ void SingleTimerExecutor::scheduleByTimestampNt(const char *msg, scheduling_s* s ScopePerf perf(PE::SingleTimerExecutorScheduleByTimestamp); #if EFI_ENABLE_ASSERTS - int32_t deltaTimeNt = (int32_t)nt - getTimeNowLowerNt(); + efitick_t deltaTimeNt = nt - getTimeNowLowerNt(); if (deltaTimeNt >= TOO_FAR_INTO_FUTURE_NT) { // we are trying to set callback for too far into the future. This does not look right at all - firmwareError(CUSTOM_ERR_TASK_TIMER_OVERFLOW, "scheduleByTimestampNt() too far: %d %s", deltaTimeNt, msg); + int32_t intDeltaTimeNt = (int32_t)deltaTimeNt; + firmwareError(CUSTOM_ERR_TASK_TIMER_OVERFLOW, "scheduleByTimestampNt() too far: %d %s", intDeltaTimeNt, msg); return; } #endif