Mercurial > emacs
changeset 8854:c21c9ae5f8e7
(print): sprintf arg for frame depends on VALBITS.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 17 Sep 1994 05:36:53 +0000 |
parents | f44e40e722b2 |
children | 8db5444c2708 |
files | src/print.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/print.c Sat Sep 17 05:30:39 1994 +0000 +++ b/src/print.c Sat Sep 17 05:36:53 1994 +0000 @@ -972,7 +972,10 @@ ? "#<frame " : "#<dead frame "), -1, printcharfun); print_string (XFRAME (obj)->name, printcharfun); - sprintf (buf, " 0x%lx", (EMACS_UINT) (XFRAME (obj))); + if (sizeof (EMACS_INT) > 4) + sprintf (buf, " 0x%lx", (EMACS_UINT) (XFRAME (obj))); + else + sprintf (buf, " 0x%x", (EMACS_UINT) (XFRAME (obj))); strout (buf, -1, printcharfun); strout (">", -1, printcharfun); break;