Skip to content

Commit

Permalink
update buddy to v1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
elydre committed Dec 27, 2024
1 parent 3a6cf31 commit 2d43930
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions zlibs/libc/alloc_buddy.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@
#define BUDDY_ALLOC_H

#ifndef BUDDY_HEADER
#include <sys/types.h>
#include <limits.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <sys/types.h>
#ifndef BUDDY_PRINTF
#include <stdio.h>
#endif
Expand Down Expand Up @@ -1260,7 +1260,7 @@ static bool buddy_is_free(struct buddy *buddy, size_t from) {
effective_memory_size = buddy_effective_memory_size(buddy);
virtual_slots = buddy_virtual_slots(buddy);
to = effective_memory_size -
((virtual_slots ? virtual_slots : 1) * buddy->alignment);
((virtual_slots ? (virtual_slots + 1) : 1) * buddy->alignment);

tree = buddy_tree(buddy);

Expand Down
2 changes: 1 addition & 1 deletion zlibs/libc/config_libc.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#ifndef CONFIG_LIBC_H
#define CONFIG_LIBC_H

#define PROFAN_LIBC_VERSION "2.3 rev 4"
#define PROFAN_LIBC_VERSION "2.3 rev 5"

/****** PROFAN EXTRA ***********************************************/

Expand Down

0 comments on commit 2d43930

Please sign in to comment.