result of memcmp, but untrue that we can do so _unconditionally_: if
memcmp returns zero, we still need to fall through to the next
comparison.
git-svn-id: svn://svn.tartarus.org/sgt/putty@9637
cda61777-01e9-0310-a592-
d414129be87e
*/
#if defined(__LCC__) || defined(__clang__)
/* lcc won't let us compare function pointers. Legal, but annoying. */
- return memcmp(&a->fn, &b->fn, sizeof(a->fn));
+ {
+ int c = memcmp(&a->fn, &b->fn, sizeof(a->fn));
+ if (c)
+ return c;
+ }
#else
if (a->fn < b->fn)
return -1;