mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-04 03:36:34 +02:00
Issue #277
This commit is contained in:
parent
2f0537d6b1
commit
d9b0adc8c1
1 changed files with 1 additions and 1 deletions
|
@ -1214,7 +1214,7 @@
|
||||||
"(void *data, int argc, closure _, object k, object num)"
|
"(void *data, int argc, closure _, object k, object num)"
|
||||||
" Cyc_check_num(data, num);
|
" Cyc_check_num(data, num);
|
||||||
if (obj_is_int(num)) {
|
if (obj_is_int(num)) {
|
||||||
return_closcall1(data, k, obj_int2obj( abs( obj_obj2int(num))));
|
return_closcall1(data, k, obj_int2obj( labs( obj_obj2int(num))));
|
||||||
} else if (is_object_type(num) && type_of(num) == bignum_tag){
|
} else if (is_object_type(num) && type_of(num) == bignum_tag){
|
||||||
alloc_bignum(data, bn);
|
alloc_bignum(data, bn);
|
||||||
mp_abs(&bignum_value(num), &bignum_value(bn));
|
mp_abs(&bignum_value(num), &bignum_value(bn));
|
||||||
|
|
Loading…
Add table
Reference in a new issue