From 6de5509a458627814696bc3d58bb1d58a4a53dc4 Mon Sep 17 00:00:00 2001 From: "Christopher R. Hertel" Date: Tue, 14 Apr 1998 14:43:38 +0000 Subject: Fixed some typecast and function pointer problems pointed out by a programmer in Finland. Chris -)----- (This used to be commit 7ba2195cc1914fbdfdd30eff207ea55ffc3aeb02) --- source3/ubiqx/ubi_BinTree.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source3/ubiqx/ubi_BinTree.h') diff --git a/source3/ubiqx/ubi_BinTree.h b/source3/ubiqx/ubi_BinTree.h index f3c49c95e1..8a99f28045 100644 --- a/source3/ubiqx/ubi_BinTree.h +++ b/source3/ubiqx/ubi_BinTree.h @@ -29,6 +29,11 @@ * -------------------------------------------------------------------------- ** * * Log: ubi_BinTree.h,v + * Revision 4.1 1998/03/31 06:13:47 crh + * Thomas Aglassinger sent E'mail pointing out errors in the + * dereferencing of function pointers, and a missing typecast. + * Thanks, Thomas! + * * Revision 4.0 1998/03/10 03:16:04 crh * Added the AVL field 'balance' to the ubi_btNode structure. This means * that all BinTree modules now use the same basic node structure, which @@ -193,7 +198,8 @@ typedef enum { * -------------------------------------------------------------------------- ** */ #define ubi_trNormalize(W) ((char)( (W) - ubi_trEQUAL )) -#define ubi_trAbNormal(W) ((char)( ((char)ubi_btSgn( W )) + ubi_trEQUAL )) +#define ubi_trAbNormal(W) ((char)( ((char)ubi_btSgn( (long)(W) )) \ + + ubi_trEQUAL )) #define ubi_trRevWay(W) ((char)( ubi_trEQUAL - ((W) - ubi_trEQUAL) )) /* -------------------------------------------------------------------------- ** -- cgit