Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c Subject: Re: mergesort code segfaulting on smallish arrays Date: Sun, 10 Nov 2019 05:13:04 -0800 Organization: A noiseless patient Spider Lines: 8 Message-ID: <86h83bdgdb.fsf@linuxsc.com> References: <87mud63p3b.fsf@bsb.me.uk> <86o8xlem9f.fsf@linuxsc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="451385503b6e65ada0ba6f97513c8763"; logging-data="5612"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19slxAykmLm2qSwWZ8618nSCDmCmoP1gJs=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:9ZA9LHaVVOtPtd9eZv2fWyNlLJE= sha1:VYXtLdX1FdT1aoYmuNHss4EcfUE= Xref: csiph.com comp.lang.c:147876 Bonita Montero writes: >> Isn't it the case that the routine being discussed is supposed to >> be able to return the value high? ... > > Yes, it should. But DFS' implementation is absolutely confused. Yours is nothing to write home about.