Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Fix fn round_up. #330

Merged
merged 3 commits into from
Jul 20, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

## [Unreleased]

- [#330] Fix `fn round_up`
- [#329] Update probe-rs to 0.13.0 (does not yet implement 64-bit support)
- [#328] Simplify, by capturing identifiers in logging macros
- [#326] Make use of i/o locking being static since rust `1.61`.
Expand All @@ -16,6 +17,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- [#314] Clarify documentation in README
- [#293] Update snapshot tests to new TRACE output

[#330]: https://github.com/knurling-rs/probe-run/pull/330
[#329]: https://github.com/knurling-rs/probe-run/pull/329
[#328]: https://github.com/knurling-rs/probe-run/pull/328
[#326]: https://github.com/knurling-rs/probe-run/pull/326
Expand Down
2 changes: 1 addition & 1 deletion src/canary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ fn round_up(n: u32, k: u32) -> u32 {
if rem == 0 {
n
} else {
n + 4 - rem
n + k - rem
Urhengulas marked this conversation as resolved.
Show resolved Hide resolved
}
}

Expand Down