Skip to content

Commit

Permalink
fix conversion from 'long unsigned int' to 'int' warning
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Pankratz <[email protected]>
  • Loading branch information
kratz00 committed Apr 12, 2021
1 parent 7c699be commit b6be30f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ebus/datatype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ result_t DateTimeDataType::readSymbols(size_t offset, size_t length, const Symbo
}
*output << dec << setfill('0') << setw(2) << static_cast<unsigned>(d) << "."
<< setw(2) << static_cast<unsigned>(m) << "." << static_cast<unsigned>(y + 1900);
m = (int)(minutes%(24*60));
m = static_cast<int>(minutes%(24*60));
d = m/60;
*output << " " << setw(2) << dec << setfill('0') << static_cast<unsigned>(d);
m -= d*60;
Expand Down

0 comments on commit b6be30f

Please sign in to comment.