diff options
| author | Paul Eggert | 2023-05-14 18:51:24 -0700 |
|---|---|---|
| committer | Paul Eggert | 2023-05-14 19:28:14 -0700 |
| commit | 85c4efc9f415e76244580dc85cce99c4df6ea4e8 (patch) | |
| tree | 873e6ef3171e253644c716873a48464317899475 /src | |
| parent | 0f5b1fcdf0be8c1b3084518f1c4f6f375828094b (diff) | |
| download | emacs-85c4efc9f415e76244580dc85cce99c4df6ea4e8.tar.gz emacs-85c4efc9f415e76244580dc85cce99c4df6ea4e8.zip | |
Prefer UINTMAX_WIDTH in print_object
* src/print.c (print_object):
Prefer UINTMAX_WIDTH to rolling our own substitute.
Diffstat (limited to 'src')
| -rw-r--r-- | src/print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/print.c b/src/print.c index 6320c38fc6b..5c95aeb9a20 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -2202,7 +2202,7 @@ print_object (Lisp_Object obj, Lisp_Object printcharfun, bool escapeflag) | |||
| 2202 | char buf[max (sizeof "from..to..in " + 2 * INT_STRLEN_BOUND (EMACS_INT), | 2202 | char buf[max (sizeof "from..to..in " + 2 * INT_STRLEN_BOUND (EMACS_INT), |
| 2203 | max (sizeof " . #" + INT_STRLEN_BOUND (intmax_t), | 2203 | max (sizeof " . #" + INT_STRLEN_BOUND (intmax_t), |
| 2204 | max ((sizeof " with data 0x" | 2204 | max ((sizeof " with data 0x" |
| 2205 | + (sizeof (uintmax_t) * CHAR_BIT + 4 - 1) / 4), | 2205 | + (UINTMAX_WIDTH + 4 - 1) / 4), |
| 2206 | 40)))]; | 2206 | 40)))]; |
| 2207 | current_thread->stack_top = NEAR_STACK_TOP (buf); | 2207 | current_thread->stack_top = NEAR_STACK_TOP (buf); |
| 2208 | 2208 | ||