mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-06 20:56:38 +02:00
Disabling bignum warning in qsort.c when bignums are disabled.
This commit is contained in:
parent
75af68ad76
commit
56e11e6264
1 changed files with 4 additions and 0 deletions
|
@ -68,12 +68,16 @@ static int sexp_object_compare (sexp ctx, sexp a, sexp b) {
|
|||
res = sexp_pointer_tag(a) - sexp_pointer_tag(b);
|
||||
} else {
|
||||
switch (sexp_pointer_tag(a)) {
|
||||
#if SEXP_USE_FLONUMS
|
||||
case SEXP_FLONUM:
|
||||
res = sexp_flonum_value(a) - sexp_flonum_value(b);
|
||||
break;
|
||||
#endif
|
||||
#if SEXP_USE_BIGNUMS
|
||||
case SEXP_BIGNUM:
|
||||
res = sexp_bignum_compare(a, b);
|
||||
break;
|
||||
#endif
|
||||
case SEXP_STRING:
|
||||
res = strcmp(sexp_string_data(a), sexp_string_data(b));
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue