1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

(bdf-read-font-info): Use string-to-number rather than string-to-int.

This commit is contained in:
Glenn Morris 2008-02-02 04:15:23 +00:00
parent 2858cdb5d1
commit 4836694e55

View file

@ -240,7 +240,7 @@ CODE, where N and CODE are in the following relation:
(goto-char (point-min))
(search-forward "\nFONT ")
(if (looking-at "-[^-]*-[^-]*-[^-]*-[^-]*-[^-]*-[^-]*-\\([0-9]+\\)")
(setq size (string-to-int (match-string 1)))
(setq size (string-to-number (match-string 1)))
(search-forward "\nSIZE ")
(setq size (read (current-buffer)))
;; The following kludgy code is t avoid bugs of several