Skip to content

Commit

Permalink
Fix additional -Wconversion warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanplusplus committed Dec 7, 2024
1 parent 06f0068 commit 81fd08e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"maintainer": true
}
],
"version": "6.4.4",
"version": "6.4.5",
"frameworks": "*",
"platforms": "*",
"export": {
Expand Down
2 changes: 1 addition & 1 deletion src/tiny_event_queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static void enqueue_with_data(
reinterpret(self, _self, tiny_event_queue_t*);
unsigned capacity = tiny_ring_buffer_capacity(&self->ring_buffer);
unsigned count = tiny_ring_buffer_count(&self->ring_buffer);
unsigned event_size = event_with_data_overhead + data_size;
unsigned event_size = (unsigned)(event_with_data_overhead + data_size);

if((capacity - count) <= event_size) {
self->unable_to_queue_callback();
Expand Down
2 changes: 1 addition & 1 deletion src/tiny_hsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ static void send_entries(tiny_hsm_t* self, tiny_hsm_state_t after, tiny_hsm_stat
return;
}

for(uint8_t n = distance_between(self, to, after) - 1; n > 0; n--) {
for(uint8_t n = (uint8_t)(distance_between(self, to, after) - 1); n > 0; n--) {
nth_parent(self, to, n)(self, tiny_hsm_signal_entry, NULL);
}

Expand Down
2 changes: 1 addition & 1 deletion src/tiny_ram_key_value_store.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static const i_tiny_key_value_store_api_t api = {

static void initialize_storage(tiny_ram_key_value_store_t* self)
{
tiny_key_value_store_key_t last_key = self->configuration->key_value_pair_count - 1;
tiny_key_value_store_key_t last_key = (tiny_key_value_store_key_t)(self->configuration->key_value_pair_count - 1);
uint16_t last_offset = offset(self, last_key);
uint8_t last_size = size(&self->interface, last_key);
memset(self->storage, 0, last_offset + last_size);
Expand Down

0 comments on commit 81fd08e

Please sign in to comment.