Skip to content

Commit 28a3a95

Browse files
j0nikritzcreek
authored andcommitted
Use string-to-number instead of obsolete string-to-int (#94)
See https://www.gnu.org/software/emacs/manual/html_node/elisp/String-Conversion.html
1 parent 4a78aac commit 28a3a95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

psc-ide.el

+2-2
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,8 @@ use when the search used was with `string-match'."
403403
(defun psc-ide--version-gte (version1 version2)
404404
"Determines whether VERSION1 is greater then or equal to VERSION2"
405405
(let* ((vs (-zip-fill 0
406-
(-map 'string-to-int (s-split "\\." version1))
407-
(-map 'string-to-int (s-split "\\." version2))))
406+
(-map 'string-to-number (s-split "\\." version1))
407+
(-map 'string-to-number (s-split "\\." version2))))
408408
;; drop all the prefix version numbers that are equal
409409
(v (car (--drop-while (= (cdr it) (car it)) vs))))
410410
;; if v is nil, the two versions were completely equal

0 commit comments

Comments
 (0)