Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/host/hardware_divider/include/hardware/divider.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ static inline int32_t hw_divider_s32_remainder_wait() {
}

static inline uint32_t hw_divider_u32_quotient(uint32_t a, uint32_t b) {
return b ? (a / b) : -1;
return b ? (a / b) : (uint32_t)(-1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

going to merge anyway, but stylistically I would do (uint32_t)-1

}

static inline uint32_t hw_divider_u32_remainder(uint32_t a, uint32_t b) {
Expand Down