]> git.saurik.com Git - bison.git/blobdiff - src/output.c
variant: produce stable results
[bison.git] / src / output.c
index c64c7aa0b3a98a8edb0c32fbd63517cb3af7b507..7e552dcc87fb2a9473c6038641341638e53070e2 100644 (file)
@@ -284,10 +284,10 @@ prepare_states (void)
 static int
 symbol_type_name_cmp (const symbol **lhs, const symbol **rhs)
 {
-  int res = UNIQSTR_CMP((*lhs)->type_name, (*rhs)->type_name);
-  if (res)
-    return res;
-  return (*lhs)->number - (*rhs)->number;
+  int res = uniqstr_cmp ((*lhs)->type_name, (*rhs)->type_name);
+  if (!res)
+    res = (*lhs)->number - (*rhs)->number;
+  return res;
 }