aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab2004-06-13 15:33:33 +0000
committerAndreas Schwab2004-06-13 15:33:33 +0000
commit474f84d92535b4caf163e0c7c8b0717c0ab4126e (patch)
tree92ea482f02d117c97edec44efe2822c7de84f936 /src
parent874757e8ed7e05f2359de29083861e4a83a456c2 (diff)
downloademacs-474f84d92535b4caf163e0c7c8b0717c0ab4126e.tar.gz
emacs-474f84d92535b4caf163e0c7c8b0717c0ab4126e.zip
(print_object): Always use %ld for printing EMACS_INT.
Diffstat (limited to 'src')
-rw-r--r--src/print.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/print.c b/src/print.c
index 0e07cd6fdd3..a91276d409a 100644
--- a/src/print.c
+++ b/src/print.c
@@ -1822,7 +1822,7 @@ print_object (obj, printcharfun, escapeflag)
1822 1822
1823 PRINTCHAR ('#'); 1823 PRINTCHAR ('#');
1824 PRINTCHAR ('&'); 1824 PRINTCHAR ('&');
1825 sprintf (buf, "%d", XBOOL_VECTOR (obj)->size); 1825 sprintf (buf, "%ld", (long) XBOOL_VECTOR (obj)->size);
1826 strout (buf, -1, -1, printcharfun, 0); 1826 strout (buf, -1, -1, printcharfun, 0);
1827 PRINTCHAR ('\"'); 1827 PRINTCHAR ('\"');
1828 1828
@@ -1875,7 +1875,7 @@ print_object (obj, printcharfun, escapeflag)
1875 else if (WINDOWP (obj)) 1875 else if (WINDOWP (obj))
1876 { 1876 {
1877 strout ("#<window ", -1, -1, printcharfun, 0); 1877 strout ("#<window ", -1, -1, printcharfun, 0);
1878 sprintf (buf, "%d", XFASTINT (XWINDOW (obj)->sequence_number)); 1878 sprintf (buf, "%ld", (long) XFASTINT (XWINDOW (obj)->sequence_number));
1879 strout (buf, -1, -1, printcharfun, 0); 1879 strout (buf, -1, -1, printcharfun, 0);
1880 if (!NILP (XWINDOW (obj)->buffer)) 1880 if (!NILP (XWINDOW (obj)->buffer))
1881 { 1881 {
@@ -1896,8 +1896,8 @@ print_object (obj, printcharfun, escapeflag)
1896 PRINTCHAR (' '); 1896 PRINTCHAR (' ');
1897 strout (SDATA (SYMBOL_NAME (h->weak)), -1, -1, printcharfun, 0); 1897 strout (SDATA (SYMBOL_NAME (h->weak)), -1, -1, printcharfun, 0);
1898 PRINTCHAR (' '); 1898 PRINTCHAR (' ');
1899 sprintf (buf, "%d/%d", XFASTINT (h->count), 1899 sprintf (buf, "%ld/%ld", (long) XFASTINT (h->count),
1900 XVECTOR (h->next)->size); 1900 (long) XVECTOR (h->next)->size);
1901 strout (buf, -1, -1, printcharfun, 0); 1901 strout (buf, -1, -1, printcharfun, 0);
1902 } 1902 }
1903 sprintf (buf, " 0x%lx", (unsigned long) h); 1903 sprintf (buf, " 0x%lx", (unsigned long) h);
@@ -2020,7 +2020,7 @@ print_object (obj, printcharfun, escapeflag)
2020 break; 2020 break;
2021 2021
2022 case Lisp_Misc_Intfwd: 2022 case Lisp_Misc_Intfwd:
2023 sprintf (buf, "#<intfwd to %d>", *XINTFWD (obj)->intvar); 2023 sprintf (buf, "#<intfwd to %ld>", (long) *XINTFWD (obj)->intvar);
2024 strout (buf, -1, -1, printcharfun, 0); 2024 strout (buf, -1, -1, printcharfun, 0);
2025 break; 2025 break;
2026 2026