mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-22 04:30:19 +02:00
(core_environments_unobserve): Use if/else rather
than ?: for "SET" bits, avoiding complaints from AIX xlc compiler about them not being rvalues. Reported by Mike Gran.
This commit is contained in:
parent
0ad95e9ab8
commit
4a0c7b515d
1 changed files with 4 additions and 3 deletions
|
@ -687,9 +687,10 @@ core_environments_unobserve (SCM env, SCM observer)
|
||||||
if (scm_is_eq (first, observer))
|
if (scm_is_eq (first, observer))
|
||||||
{
|
{
|
||||||
/* Remove the first observer */
|
/* Remove the first observer */
|
||||||
handling_weaks
|
if (handling_weaks)
|
||||||
? SCM_SET_CORE_ENVIRONMENT_WEAK_OBSERVERS (env, rest)
|
SCM_SET_CORE_ENVIRONMENT_WEAK_OBSERVERS (env, rest);
|
||||||
: SCM_SET_CORE_ENVIRONMENT_OBSERVERS (env, rest);
|
else
|
||||||
|
SCM_SET_CORE_ENVIRONMENT_OBSERVERS (env, rest);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue