]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* sysdeps/mips/dl-trampoline.c: Modify switch expression to have
authorSteve Ellcey <sellcey@mips.com>
Thu, 11 Dec 2014 18:23:01 +0000 (10:23 -0800)
committerSteve Ellcey <sellcey@mips.com>
Thu, 11 Dec 2014 18:23:01 +0000 (10:23 -0800)
integer value instead of boolean.

ChangeLog
sysdeps/mips/dl-trampoline.c

index 3bf18831d8256b6b59fc8cf577f73059c1261118..31a63e3f2fd7064eb36e288326b2349cc87d9381 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
+
+       * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
+       integer value instead of boolean.
+
 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
 
        * malloc/malloc.c: Fix powerof2 check.
index f5656549349c66042a0da34706046d4ac72c2199..66a1ea1c78883a6fbb01155a55e374fc6a94e297 100644 (file)
@@ -139,7 +139,7 @@ __dl_runtime_resolve (ElfW(Word) sym_index,
   /* FIXME: The symbol versioning stuff is not tested yet.  */
   if (__builtin_expect (ELFW(ST_VISIBILITY) (sym->st_other), 0) == 0)
     {
-      switch (l->l_info[VERSYMIDX (DT_VERSYM)] != NULL)
+      switch (l->l_info[VERSYMIDX (DT_VERSYM)] != NULL ? 1 : 0)
        {
        default:
          {