aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/editfns.c b/src/editfns.c
index c43528c4863..e916b505fe8 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -3758,7 +3758,13 @@ usage: (format STRING &rest OBJECTS) */)
3758 this_format[format - this_format_start] = 0; 3758 this_format[format - this_format_start] = 0;
3759 3759
3760 if (INTEGERP (args[n])) 3760 if (INTEGERP (args[n]))
3761 sprintf (p, this_format, XINT (args[n])); 3761 {
3762 if (format[-1] == 'd')
3763 sprintf (p, this_format, XINT (args[n]));
3764 /* Don't sign-extend for octal or hex printing. */
3765 else
3766 sprintf (p, this_format, XUINT (args[n]));
3767 }
3762 else 3768 else
3763 sprintf (p, this_format, XFLOAT_DATA (args[n])); 3769 sprintf (p, this_format, XFLOAT_DATA (args[n]));
3764 3770