mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Remove no-longer-needed integer overflow code
* lisp/calculator.el (calculator-number-to-string): Use truncate, not calculator-truncate, since integer overflow cannot occur here. * lisp/calendar/cal-persia.el (calendar-persian-year-from-absolute): * lisp/gnus/gnus-agent.el (gnus-agent-read-article-number): * lisp/gnus/nnmaildir.el (nnmaildir--group-maxnum) (nnmaildir--new-number): * lisp/scroll-bar.el (scroll-bar-scale): * lisp/simple.el (beginning-of-buffer, end-of-buffer): Simplify, now that integer overflow cannot occur.
This commit is contained in:
parent
b904a238a5
commit
c63e7f1bf6
7 changed files with 10 additions and 43 deletions
|
|
@ -4959,8 +4959,8 @@ Uses `backup-directory-alist' in the same way as
|
|||
(list (make-backup-file-name fn))
|
||||
(cons (format "%s.~%d~" basic-name (1+ high-water-mark))
|
||||
(if (and (> number-to-delete 0)
|
||||
;; Delete nothing if there is overflow
|
||||
;; in the number of versions to keep.
|
||||
;; Delete nothing if kept-new-versions and
|
||||
;; kept-old-versions combine to an outlandish value.
|
||||
(>= (+ kept-new-versions kept-old-versions -1) 0))
|
||||
(mapcar (lambda (n)
|
||||
(format "%s.~%d~" basic-name n))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue