Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 7 Dec 2015 14:22:42 +0100
From: Ed Schouten <ed@...i.nl>
To: Ed Schouten <ed@...i.nl>, musl@...ts.openwall.com
Subject: Re: AVL tree: storing balances instead of heights

2015-12-07 14:19 GMT+01:00 Ed Schouten <ed@...i.nl>:
>> you got the rootp==0 case wrong too (posix requires that to
>> return 0).
>
> That already happens, right? tdelete() sets it to (void *)1, but
> tdelete_recurse() then sets it to NULL immediately.

Ah, sorry. If rootp itself is NULL, it also needs to return NULL.
Thanks for spotting this.

-- 
Ed Schouten <ed@...i.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK-nr.: 62051717

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.