mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-22 07:09:18 +02:00
changing sexp_call_sigaction to avoid casts
This commit is contained in:
parent
1053d99084
commit
73e02601e4
1 changed files with 1 additions and 2 deletions
|
@ -18,8 +18,7 @@ static void sexp_call_sigaction (int signum, siginfo_t *info, void *uctx) {
|
||||||
if (ctx) {
|
if (ctx) {
|
||||||
#if SEXP_USE_GREEN_THREADS
|
#if SEXP_USE_GREEN_THREADS
|
||||||
sexp_global(ctx, SEXP_G_THREADS_SIGNALS) =
|
sexp_global(ctx, SEXP_G_THREADS_SIGNALS) =
|
||||||
(sexp) ((sexp_uint_t)sexp_global(ctx, SEXP_G_THREADS_SIGNALS)
|
sexp_make_fixnum((1UL<<signum) | sexp_unbox_fixnum(sexp_global(ctx, SEXP_G_THREADS_SIGNALS)));
|
||||||
| (sexp_uint_t)sexp_make_fixnum(1UL<<signum));
|
|
||||||
#else
|
#else
|
||||||
handler = sexp_vector_ref(sexp_global(ctx, SEXP_G_SIGNAL_HANDLERS),
|
handler = sexp_vector_ref(sexp_global(ctx, SEXP_G_SIGNAL_HANDLERS),
|
||||||
sexp_make_fixnum(signum));
|
sexp_make_fixnum(signum));
|
||||||
|
|
Loading…
Add table
Reference in a new issue