summaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-09-07 21:04:57 +0000
committerRoland McGrath <roland@gnu.org>1995-09-07 21:04:57 +0000
commitcbf48a6ba07f2a036e172a6c71fb701ef3adc537 (patch)
treed3634452abed62bc4017bb2116e0a747d3f2230a /stdlib
parent1571a01695e14ec40bbfb41e15161797fa24df96 (diff)
(msort_with_tmp): Fixed alignment test. B1 and B2 are always congruent; just test that B1 is aligned.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/msort.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/msort.c b/stdlib/msort.c
index 959aaa3dda..21fbbfb2bf 100644
--- a/stdlib/msort.c
+++ b/stdlib/msort.c
@@ -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)
{