From 8624670824c88f5f4fa2d0de9ea4fea4a945a08f Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Mon, 22 May 1995 22:48:09 +0000 Subject: [PATCH] (Fformat): Split double into two pointers, not two ints. --- src/editfns.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/editfns.c b/src/editfns.c index 8640b89db53..d61b74422ec 100644 --- a/src/editfns.c +++ b/src/editfns.c @@ -1870,11 +1870,11 @@ Use %% to put a single % into the output.") #ifdef LISP_FLOAT_TYPE else if (FLOATP (args[n])) { - union { double d; int half[2]; } u; + union { double d; char *half[2]; } u; u.d = XFLOAT (args[n])->data; - strings[i++] = (unsigned char *) (EMACS_INT) u.half[0]; - strings[i++] = (unsigned char *) (EMACS_INT) u.half[1]; + strings[i++] = (unsigned char *) u.half[0]; + strings[i++] = (unsigned char *) u.half[1]; } #endif else -- 2.39.2