summaryrefslogtreecommitdiffstats
path: root/demo3.tl
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-02-06 20:38:14 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-02-06 20:41:05 -0800
commitdce8b7c20eaf1fbf1e7199eb04684a92c217d4d9 (patch)
tree9caaf6a66f89aaeff14b50e4c32a33cdd958018d /demo3.tl
parentf4f39e9d7471df807d8a8e9a8ee12f56e30e10d6 (diff)
downloadgtk-demos-dce8b7c20eaf1fbf1e7199eb04684a92c217d4d9.tar.gz
gtk-demos-dce8b7c20eaf1fbf1e7199eb04684a92c217d4d9.tar.bz2
gtk-demos-dce8b7c20eaf1fbf1e7199eb04684a92c217d4d9.zip
Switch demo2 and demo3 from roman numerals to hex.
Diffstat (limited to 'demo3.tl')
-rwxr-xr-xdemo3.tl3
1 files changed, 1 insertions, 2 deletions
diff --git a/demo3.tl b/demo3.tl
index d2ec257..8aa89d8 100755
--- a/demo3.tl
+++ b/demo3.tl
@@ -13,6 +13,5 @@
(defun relabel (button number)
(let* ((old (gtk_button_get_label button))
- (isdigits (<= 0 (- (chr-int [old 0]) (chr-int #\0)) 9))
- (new (format nil (if isdigits "~@R" "~d") number)))
+ (new (format nil (if (chr-isdigit [old 0]) "#x~x" "~d") number)))
(xlabel button new)))