--- libelwix/inc/elwix/atree.h 2023/03/14 22:36:13 1.4 +++ libelwix/inc/elwix/atree.h 2024/01/22 15:24:28 1.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: atree.h,v 1.4 2023/03/14 22:36:13 misho Exp $ +* $Id: atree.h,v 1.5 2024/01/22 15:24:28 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -649,7 +649,7 @@ name##_RB_INSERT(struct name *head, struct type *elm) { \ struct type *tmp; \ struct type *parent = NULL; \ - int comp = 0; \ + long comp = 0; \ tmp = RB_ROOT(head); \ while (tmp) { \ parent = tmp; \ @@ -679,7 +679,7 @@ attr struct type * \ name##_RB_FIND(struct name *head, struct type *elm) \ { \ struct type *tmp = RB_ROOT(head); \ - int comp; \ + long comp; \ while (tmp) { \ comp = cmp(elm, tmp); \ if (comp < 0) \ @@ -698,7 +698,7 @@ name##_RB_NFIND(struct name *head, struct type *elm) { \ struct type *tmp = RB_ROOT(head); \ struct type *res = NULL; \ - int comp; \ + long comp; \ while (tmp) { \ comp = cmp(elm, tmp); \ if (comp < 0) { \