Skip to content

Commit 2d43930

Browse files
committed
update buddy to v1.2.1
1 parent 3a6cf31 commit 2d43930

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

zlibs/libc/alloc_buddy.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
#define BUDDY_ALLOC_H
2222

2323
#ifndef BUDDY_HEADER
24-
#include <sys/types.h>
2524
#include <limits.h>
2625
#include <stdbool.h>
2726
#include <stddef.h>
2827
#include <stdint.h>
2928
#include <string.h>
29+
#include <sys/types.h>
3030
#ifndef BUDDY_PRINTF
3131
#include <stdio.h>
3232
#endif
@@ -1260,7 +1260,7 @@ static bool buddy_is_free(struct buddy *buddy, size_t from) {
12601260
effective_memory_size = buddy_effective_memory_size(buddy);
12611261
virtual_slots = buddy_virtual_slots(buddy);
12621262
to = effective_memory_size -
1263-
((virtual_slots ? virtual_slots : 1) * buddy->alignment);
1263+
((virtual_slots ? (virtual_slots + 1) : 1) * buddy->alignment);
12641264

12651265
tree = buddy_tree(buddy);
12661266

zlibs/libc/config_libc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#ifndef CONFIG_LIBC_H
1313
#define CONFIG_LIBC_H
1414

15-
#define PROFAN_LIBC_VERSION "2.3 rev 4"
15+
#define PROFAN_LIBC_VERSION "2.3 rev 5"
1616

1717
/****** PROFAN EXTRA ***********************************************/
1818

0 commit comments

Comments
 (0)