about summary refs log tree commit diff
diff options
context:
space:
mode:
-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)
       {