i18n: Don't use `!=' to compare SCMs.
authorLudovic Courtès <ludo@gnu.org>
Fri, 1 Jul 2011 13:29:51 +0000 (15:29 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 1 Jul 2011 13:29:51 +0000 (15:29 +0200)
* libguile/i18n.c (install_locale)[!USE_GNU_LOCALE_API]: Use
  `SCM_UNBNDP' instead of `!='.

libguile/i18n.c

index b22b332..f9ec723 100644 (file)
@@ -400,7 +400,7 @@ install_locale (scm_t_locale locale)
         account.  */
       category_mask |= locale->category_mask;
 
-      if (locale->base_locale != SCM_UNDEFINED)
+      if (!SCM_UNBNDP (locale->base_locale))
        locale = (scm_t_locale) SCM_SMOB_DATA (locale->base_locale);
       else
        locale = NULL;