mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-07 05:06:37 +02:00
Prefer lowercase for hex digits.
This commit is contained in:
parent
cbe6759304
commit
8fcf0a883c
1 changed files with 1 additions and 1 deletions
|
@ -382,7 +382,7 @@
|
||||||
(define (digit-char n)
|
(define (digit-char n)
|
||||||
(if (<= n 9)
|
(if (<= n 9)
|
||||||
(integer->char (+ n (char->integer #\0)))
|
(integer->char (+ n (char->integer #\0)))
|
||||||
(integer->char (+ (- n 10) (char->integer #\A)))))
|
(integer->char (+ (- n 10) (char->integer #\a)))))
|
||||||
|
|
||||||
(define (%number->string num)
|
(define (%number->string num)
|
||||||
(call-with-output-string (lambda (out) (write num out))))
|
(call-with-output-string (lambda (out) (write num out))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue