aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/src/hal_onewire.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/src/hal_onewire.c b/os/hal/src/hal_onewire.c
index 61a1e6c..a93eec0 100644
--- a/os/hal/src/hal_onewire.c
+++ b/os/hal/src/hal_onewire.c
@@ -365,7 +365,7 @@ static void store_bit(onewire_search_rom_t *sr, uint8_t bit) {
* 'search ROM' helper structure
* @param[in] bit number of bit [0..63]
*/
-static uint8_t extract_path_bit(const uint8_t *path, uint8_t bit) {
+static uint8_t extract_path_bit(const uint8_t *path, size_t bit) {
return (path[bit / CHAR_BIT] >> (bit % CHAR_BIT)) & 1;
}