Skip to content

Commit

Permalink
Fix a harmless precision warning by msvc (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
spaskalev authored Jun 14, 2024
1 parent 9610848 commit 5dce4fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions buddy_alloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -1752,8 +1752,8 @@ unsigned int buddy_tree_check_invariant(struct buddy_tree *t, struct buddy_tree_
* Based on https://asawicki.info/news_1757_a_metric_for_memory_fragmentation
*/
static unsigned char buddy_tree_fragmentation(struct buddy_tree *t) {
const size_t fractional_bits = 8;
const size_t fractional_mask = 255;
const unsigned char fractional_bits = 8;
const unsigned char fractional_mask = 255;

uint8_t tree_order;
size_t root_status, quality, total_free_size, virtual_size, quality_percent;
Expand Down

0 comments on commit 5dce4fe

Please sign in to comment.