Commit dfa3bb7a authored by Andreas Schwab's avatar Andreas Schwab

(Fnumber_to_string): Add cast when passing EMACS_INT

values to sprintf.
parent 3042deef
......@@ -2471,7 +2471,7 @@ NUMBER may be an integer or a floating point number. */)
}
if (sizeof (int) == sizeof (EMACS_INT))
sprintf (buffer, "%d", XINT (number));
sprintf (buffer, "%d", (int) XINT (number));
else if (sizeof (long) == sizeof (EMACS_INT))
sprintf (buffer, "%ld", (long) XINT (number));
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment