Skip to content

Commit f97e7ee

Browse files
committed
leader: try fix
1 parent ec7f1a3 commit f97e7ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/network/leader.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ size_t single_part(size_t size, struct leader_resources *l_r) {
3131
merge_free_block(blks);
3232
if (!blks && blks->nb_blocks > 0) {
3333
debug("ERROR not malloc blockS !!!", 0); //l_r->id);
34-
return 999;
34+
return SIZE_MAX;
3535
}
3636
// Single Part
3737
for (size_t i = 0; i < blks->nb_blocks; i++) {
@@ -79,7 +79,7 @@ size_t multiple_part(size_t size, struct leader_resources *l_r) {
7979
merge_free_block(blks);
8080
if (!blks && blks->nb_blocks > 0) {
8181
debug("ERROR not malloc blockS !!!", 0); //l_r->id);
82-
return 999;
82+
return SIZE_MAX;
8383
}
8484
// Multi - Parts
8585
struct allocation *a = malloc(60 + sizeof(struct allocation));

0 commit comments

Comments
 (0)