diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-09-17 05:36:53 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-09-17 05:36:53 +0000 |
commit | 4b5cd9a2d8a9ec13382573d3029c5db168878761 (patch) | |
tree | 5b67b5a4b5b03a56348b9302e07e7df6eea77714 /src/print.c | |
parent | 9aeec3a9929313735fa3fb06f6a5e9624a609ca2 (diff) | |
download | emacs-4b5cd9a2d8a9ec13382573d3029c5db168878761.tar.gz |
(print): sprintf arg for frame depends on VALBITS.
Diffstat (limited to 'src/print.c')
-rw-r--r-- | src/print.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/print.c b/src/print.c index 27e66f98dac..f9572d69744 100644 --- a/src/print.c +++ b/src/print.c @@ -972,7 +972,10 @@ print (obj, printcharfun, escapeflag) ? "#<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; |