Skip to content

Commit 5dce4fe

Browse files
authored
Fix a harmless precision warning by msvc (#111)
1 parent 9610848 commit 5dce4fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buddy_alloc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1752,8 +1752,8 @@ unsigned int buddy_tree_check_invariant(struct buddy_tree *t, struct buddy_tree_
17521752
* Based on https://asawicki.info/news_1757_a_metric_for_memory_fragmentation
17531753
*/
17541754
static unsigned char buddy_tree_fragmentation(struct buddy_tree *t) {
1755-
const size_t fractional_bits = 8;
1756-
const size_t fractional_mask = 255;
1755+
const unsigned char fractional_bits = 8;
1756+
const unsigned char fractional_mask = 255;
17571757

17581758
uint8_t tree_order;
17591759
size_t root_status, quality, total_free_size, virtual_size, quality_percent;

0 commit comments

Comments
 (0)