diff --git a/src/lib/ebus/datatype.cpp b/src/lib/ebus/datatype.cpp index 82bd9a8d1..7a3424c9d 100755 --- a/src/lib/ebus/datatype.cpp +++ b/src/lib/ebus/datatype.cpp @@ -351,7 +351,7 @@ result_t DateTimeDataType::readSymbols(size_t offset, size_t length, const Symbo } *output << dec << setfill('0') << setw(2) << static_cast(d) << "." << setw(2) << static_cast(m) << "." << static_cast(y + 1900); - m = (int)(minutes%(24*60)); + m = static_cast(minutes%(24*60)); d = m/60; *output << " " << setw(2) << dec << setfill('0') << static_cast(d); m -= d*60;