aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2002-05-17 16:37:56 +0000
committerDave Love2002-05-17 16:37:56 +0000
commitc8e19d0bd87fcce54e08907af1d934a1deadc0c0 (patch)
tree6cccc9bfc7b9c2cbd6bc194d2f2fe2dbeaf686a5
parent0dca3959836816622df0e212ec93adb18d655312 (diff)
downloademacs-c8e19d0bd87fcce54e08907af1d934a1deadc0c0.tar.gz
emacs-c8e19d0bd87fcce54e08907af1d934a1deadc0c0.zip
(print_object): Fix print format for 64-bit
systems.
-rw-r--r--src/print.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/print.c b/src/print.c
index 053f6622865..b79f2fc3502 100644
--- a/src/print.c
+++ b/src/print.c
@@ -1683,7 +1683,12 @@ print_object (obj, printcharfun, escapeflag)
1683 1683
1684 PRINTCHAR ('#'); 1684 PRINTCHAR ('#');
1685 PRINTCHAR ('&'); 1685 PRINTCHAR ('&');
1686 sprintf (buf, "%d", XBOOL_VECTOR (obj)->size); 1686 if (sizeof (int) == sizeof (EMACS_INT))
1687 sprintf (buf, "%d", XBOOL_VECTOR (obj)->size);
1688 else if (sizeof (long) == sizeof (EMACS_INT))
1689 sprintf (buf, "%ld", XBOOL_VECTOR (obj)->size);
1690 else
1691 abort ();
1687 strout (buf, -1, -1, printcharfun, 0); 1692 strout (buf, -1, -1, printcharfun, 0);
1688 PRINTCHAR ('\"'); 1693 PRINTCHAR ('\"');
1689 1694