Just cast to long; don't check whether %td will work for ptrdiff_t.
authorTaylor R Campbell <campbell@mumble.net>
Sun, 6 Oct 2013 21:14:04 +0000 (21:14 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Sun, 6 Oct 2013 21:14:04 +0000 (21:14 +0000)
src/microcode/gcloop.c

index 77177aad33387596a0895b90f5247d98258473c2..9d9ddd163f3874f864bf71941f9764060c82776b 100644 (file)
@@ -1153,14 +1153,9 @@ check_newspace_sync (void)
 {
   if ((newspace_next - newspace_start)
       != (tospace_next - tospace_start))
-    std_gc_death (
-#ifdef HAVE_STDC_99
-                 "mismatch between newspace and tospace ptrs: %td/%td",
-#else
-                 "mismatch between newspace and tospace ptrs: %ld/%ld",
-#endif
-                 (newspace_next - newspace_start),
-                 (tospace_next - tospace_start));
+    std_gc_death ("mismatch between newspace and tospace ptrs: %ld/%ld",
+                 ((long) (newspace_next - newspace_start)),
+                 ((long) (tospace_next - tospace_start)));
 }
 
 void