diff options
author | Christopher R. Hertel <crh@samba.org> | 1998-04-14 14:43:38 +0000 |
---|---|---|
committer | Christopher R. Hertel <crh@samba.org> | 1998-04-14 14:43:38 +0000 |
commit | 6de5509a458627814696bc3d58bb1d58a4a53dc4 (patch) | |
tree | 458c05d94493aaadcffd3cd36ced768c44a9c208 /source3/ubiqx/ubi_BinTree.h | |
parent | 2a53d6f7077de596265a3e73e79827392054142c (diff) | |
download | samba-6de5509a458627814696bc3d58bb1d58a4a53dc4.tar.gz samba-6de5509a458627814696bc3d58bb1d58a4a53dc4.tar.bz2 samba-6de5509a458627814696bc3d58bb1d58a4a53dc4.zip |
Fixed some typecast and function pointer problems pointed out by a
programmer in Finland.
Chris -)-----
(This used to be commit 7ba2195cc1914fbdfdd30eff207ea55ffc3aeb02)
Diffstat (limited to 'source3/ubiqx/ubi_BinTree.h')
-rw-r--r-- | source3/ubiqx/ubi_BinTree.h | 8 |
1 files changed, 7 insertions, 1 deletions
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) )) /* -------------------------------------------------------------------------- ** |