From cb76c5866a86a0de89f5b58680a9ee8b6677aefd Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Sun, 6 Oct 2013 21:14:04 +0000 Subject: [PATCH] Just cast to long; don't check whether %td will work for ptrdiff_t. --- src/microcode/gcloop.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/microcode/gcloop.c b/src/microcode/gcloop.c index 77177aad3..9d9ddd163 100644 --- a/src/microcode/gcloop.c +++ b/src/microcode/gcloop.c @@ -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 -- 2.25.1