memCompChunks

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 8 Apr 2002 10:20:21 +0200

> -    return chunkA->objCache - chunkB->objCache;
> +    if (chunkA > chunkB)
> +     return 1;
> +    else if (chunkA < chunkB)
> +     return -1;
> +    else
> +     return 0;

On Monday 08 April 2002 08:50, Andres Kroonmaa wrote:

> This changes sense of comparison. Struct chunk is small,
> objCache is large. Above specifically tries to compare
> pointers to objCaches, not chunk structs. I can't pass
> objcache pointers to splay sort also, as splay handles
> chunk structs, thats why such wrapper.

Right.. not intentional. oops. ;-)

Must have been tired. Fixed. Shows why commit mail messages should
have a diff attached.

Regards
Henrik
Received on Mon Apr 08 2002 - 03:24:35 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:58 MST