Skip to content

Commit c7f924c

Browse files
committed
klib rtc bugfix doing signed unsigned comparison
1 parent d72057a commit c7f924c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

klib/io/rtc.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ namespace klib::io::rtc {
144144

145145
// check if we have more days than the
146146
// current month has
147-
if (days < (klib::io::rtc::month_days[i] + leap_month)) {
147+
if (days < static_cast<uint32_t>(klib::io::rtc::month_days[i] + leap_month)) {
148148
break;
149149
}
150150

0 commit comments

Comments
 (0)