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
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue