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: Stefan Monnier
Subject: Re: [Emacs-diffs] trunk r117576: Reorder conditions that are written backwards
Date: Sun, 27 Jul 2014 06:21:54 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

> -  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?


        Stefan



reply via email to

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