mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Ed Schouten <ed@nuxi.nl>
To: Ed Schouten <ed@nuxi.nl>, musl@lists.openwall.com
Subject: Re: AVL tree: storing balances instead of heights
Date: Mon, 7 Dec 2015 14:22:42 +0100	[thread overview]
Message-ID: <CABh_MKn21Nw1SzADtzsv1AE5rb5CjZxdcUMknaxrjLbbAtWVRg@mail.gmail.com> (raw)
In-Reply-To: <CABh_MKnkw_Yp9ifwybXBOMb0FuPvP05T183utZ1kW6Ohqq3gvQ@mail.gmail.com>

2015-12-07 14:19 GMT+01:00 Ed Schouten <ed@nuxi.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@nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK-nr.: 62051717


  reply	other threads:[~2015-12-07 13:22 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CABh_MKm1Ow5_dc4ENJM-fAqWc+uPPZgftRdSDxPJiPXZAfZ+FQ@mail.gmail.com>
2015-12-07 13:03 ` Szabolcs Nagy
2015-12-07 13:19   ` Ed Schouten
2015-12-07 13:22     ` Ed Schouten [this message]
2015-12-07 14:46     ` Szabolcs Nagy
2015-12-10  9:21       ` Ed Schouten
2015-12-10 12:14         ` Szabolcs Nagy
2015-12-10 13:12           ` Ed Schouten
2015-12-10 13:43             ` Szabolcs Nagy
2015-12-20 21:43               ` Szabolcs Nagy
2015-12-21  1:28                 ` Szabolcs Nagy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABh_MKn21Nw1SzADtzsv1AE5rb5CjZxdcUMknaxrjLbbAtWVRg@mail.gmail.com \
    --to=ed@nuxi.nl \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).