more fixes to avoid warnings
This commit is contained in:
parent
1e31d99ca3
commit
b40c91e6f4
|
@ -2039,9 +2039,12 @@ real_to_double_flonum (int argc, Scheme_Object *argv[])
|
|||
static Scheme_Object *
|
||||
real_to_long_double_flonum (int argc, Scheme_Object *argv[])
|
||||
{
|
||||
CHECK_MZ_LONG_DOUBLE_UNSUPPORTED("real->extfl");
|
||||
#ifdef MZ_LONG_DOUBLE
|
||||
CHECK_MZ_LONG_DOUBLE_UNSUPPORTED("real->extfl");
|
||||
return scheme_TO_LONG_DOUBLE(argv[0]);
|
||||
#else
|
||||
scheme_raise_exn(MZEXN_FAIL_UNSUPPORTED, "real->extfl" ": " NOT_SUPPORTED_STR);
|
||||
ESCAPED_BEFORE_HERE;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -4015,7 +4018,8 @@ extfl_to_exact (int argc, Scheme_Object *argv[])
|
|||
|
||||
return scheme_rational_from_long_double(d);
|
||||
#else
|
||||
CHECK_MZ_LONG_DOUBLE_UNSUPPORTED("extfl->exact");
|
||||
scheme_raise_exn(MZEXN_FAIL_UNSUPPORTED, "extfl->exact" ": " NOT_SUPPORTED_STR);
|
||||
ESCAPED_BEFORE_HERE;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -1925,6 +1925,7 @@ static char *number_to_allocated_string(int radix, Scheme_Object *obj, int alloc
|
|||
"number", 1, obj,
|
||||
"requested base", 1, scheme_make_integer(radix),
|
||||
NULL);
|
||||
memset(&stub, 0, sizeof(long_double));
|
||||
s = double_to_string(SCHEME_FLOAT_VAL(obj), alloc, SCHEME_FLTP(obj), 0, stub);
|
||||
} else if (SCHEME_LONG_DBLP(obj)) {
|
||||
if (radix != 10)
|
||||
|
|
Loading…
Reference in New Issue
Block a user