Skip to content

Commit

Permalink
(msort_with_tmp): Fixed alignment test. B1 and B2 are always congruen…
Browse files Browse the repository at this point in the history
…t; just test that B1 is aligned.
  • Loading branch information
Roland McGrath committed Sep 7, 1995
1 parent 1571a01 commit cbf48a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/msort.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ DEFUN(msort_with_tmp, (b, n, s, cmp, t),

tmp = t;

if (s == OPSIZ && (b1 - b2) % OPSIZ == 0)
if (s == OPSIZ && (b1 - (char *) 0) % OPSIZ == 0)
/* We are operating on aligned words. Use direct word stores. */
while (n1 > 0 && n2 > 0)
{
Expand Down

0 comments on commit cbf48a6

Please sign in to comment.