Fix remainder handling.
* mes/module/mes/scm.mes (number->string): Fix remainder handling. * build-aux/check-mescc.sh (XFAIL_TESTS): Remove lib/tests/scaffold/60-math.c.
This commit is contained in:
parent
5d1a3e9eda
commit
4b5d5017c4
|
@ -234,7 +234,6 @@ lib/tests/scaffold/91-goto-array.c
|
|||
|
||||
if test $mes_cpu = x86; then
|
||||
XFAIL_TESTS="$XFAIL_TESTS
|
||||
lib/tests/scaffold/60-math.c
|
||||
"
|
||||
fi
|
||||
|
||||
|
|
|
@ -264,7 +264,7 @@
|
|||
(let* ((radix (if (null? rest) 10 (car rest)))
|
||||
(sign (if (< n 0) '(#\-) '())))
|
||||
(let loop ((n (abs n)) (lst '()))
|
||||
(let* ((i (remainder n radix))
|
||||
(let* ((i (abs (remainder n radix)))
|
||||
(lst (cons (integer->char (+ i (if (< i 10) (char->integer #\0)
|
||||
(- (char->integer #\a) 10)))) lst))
|
||||
(n (quotient n radix)))
|
||||
|
|
Loading…
Reference in a new issue