mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-02-03 20:24:29 +00:00
Fix range-error in image-dired.el
* lisp/image-dired.el (image-dired-create-thumb-1): Avoid overflowing an Emacs integer on 32-bit hosts. (Bug#28809)
This commit is contained in:
parent
081d2187c4
commit
c63b344c3d
@ -748,7 +748,10 @@ Increase at own risk.")
|
||||
'image-dired-cmd-create-thumbnail-program)
|
||||
(let* ((width (int-to-string (image-dired-thumb-size 'width)))
|
||||
(height (int-to-string (image-dired-thumb-size 'height)))
|
||||
(modif-time (floor (float-time (nth 5 (file-attributes original-file)))))
|
||||
(modif-time
|
||||
(format "%.0f"
|
||||
(ffloor (float-time
|
||||
(nth 5 (file-attributes original-file))))))
|
||||
(thumbnail-nq8-file (replace-regexp-in-string ".png\\'" "-nq8.png"
|
||||
thumbnail-file))
|
||||
(spec
|
||||
|
Loading…
x
Reference in New Issue
Block a user