emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] trunk r117576: Reorder conditions that are written bac


From: Óscar Fuentes
Subject: Re: [Emacs-diffs] trunk r117576: Reorder conditions that are written backwards
Date: Sun, 27 Jul 2014 13:46:07 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> -  eassert (0 <= nitems && 0 < item_size);
>> -  if (min (PTRDIFF_MAX, SIZE_MAX) / item_size < nitems)
>> +  eassert (nitems >= 0 && item_size > 0);
>> +  if (nitems > min (PTRDIFF_MAX, SIZE_MAX) / item_size)
> [...]
>> -  if (nitems_incr_max < incr)
>> +  if (incr > nitems_incr_max)
>
> Why is this better?

Déjà vu:

http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00670.html




reply via email to

[Prev in Thread] Current Thread [Next in Thread]