all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Cc: Chris Feng <chris.w.feng@gmail.com>
Subject: Re: [elpa] externals/xelb 0330657: Fix the reply/error sequence number overflow issue
Date: Thu, 05 Nov 2015 09:35:25 -0500	[thread overview]
Message-ID: <jwvh9l0ikii.fsf-monnier+emacsdiffs@gnu.org> (raw)
In-Reply-To: <E1ZuEYu-00070O-SO@vcs.savannah.gnu.org> (Chris Feng's message of "Thu, 05 Nov 2015 07:02:21 +0000")

> +    (if (< #x7FFF (abs (- sequence1 sequence2)))
> +        ;; Overflowed
> +        (if (< sequence1 sequence2) 1 -1)
> +      (if (> sequence1 sequence2) 1 -1))))

Aka

       (if (if (< #x7FFF (abs (- sequence1 sequence2)))
               ;; Overflowed
               (< sequence1 sequence2)
             (> sequence1 sequence2))
           1 -1))))

Or even

       (if (funcall (if (< #x7FFF (abs (- sequence1 sequence2))) #'< #'>)
                    sequence1 sequence2)
           1 -1))))


-- Stefan "in redundancy-killing-mode"



       reply	other threads:[~2015-11-05 14:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20151105070219.26719.57321@vcs.savannah.gnu.org>
     [not found] ` <E1ZuEYu-00070O-SO@vcs.savannah.gnu.org>
2015-11-05 14:35   ` Stefan Monnier [this message]
2015-11-06  5:45     ` [elpa] externals/xelb 0330657: Fix the reply/error sequence number overflow issue Chris Feng

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=jwvh9l0ikii.fsf-monnier+emacsdiffs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=chris.w.feng@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.