This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[trans-mem] libitm: bad comparison in clone_entry_compare


Hello Richard,

Just a small mistake in clone.cc. The comparison must be "greater than".
This was making troubles to find clone functions since the table is not well sorted.


Thank you.
Have a nice day,

Patrick Marlier.

Index: clone.cc
===================================================================
--- clone.cc    (revision 160599)
+++ clone.cc    (working copy)
@@ -113,7 +113,7 @@

   if (aa->orig < bb->orig)
     return -1;
-  else if (aa->orig < bb->orig)
+  else if (aa->orig > bb->orig)
     return 1;
   else
     return 0;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]