From cbf48a6ba07f2a036e172a6c71fb701ef3adc537 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 7 Sep 1995 21:04:57 +0000 Subject: (msort_with_tmp): Fixed alignment test. B1 and B2 are always congruent; just test that B1 is aligned. --- stdlib/msort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stdlib') 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) { -- cgit 1.4.1