aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util.lisp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.lisp b/src/util.lisp
index 4e93ea0..9c6c4ec 100644
--- a/src/util.lisp
+++ b/src/util.lisp
@@ -72,7 +72,8 @@
(defun string->filename (s)
(apply #'concatenate 'string
- (loop for c across s
+ (loop for c
+ across (etypecase s (string s) (number (write-to-string s)))
if (or (char= c #\.)
(alpha-char-p c)
(digit-char-p c))