mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Bignum support for (exact?)
This commit is contained in:
parent
371b4630eb
commit
0325383f0e
1 changed files with 2 additions and 1 deletions
|
@ -1098,7 +1098,8 @@
|
|||
(define-c exact?
|
||||
"(void *data, int argc, closure _, object k, object num)"
|
||||
" Cyc_check_num(data, num);
|
||||
if (obj_is_int(num) || type_of(num) == integer_tag)
|
||||
if (obj_is_int(num) || type_of(num) == integer_tag
|
||||
|| type_of(num) == bignum_tag)
|
||||
return_closcall1(data, k, boolean_t);
|
||||
return_closcall1(data, k, boolean_f); ")
|
||||
(define (inexact? num) (not (exact? num)))
|
||||
|
|
Loading…
Add table
Reference in a new issue