]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fformat): Split double into two pointers, not two ints.
authorKarl Heuer <kwzh@gnu.org>
Mon, 22 May 1995 22:48:09 +0000 (22:48 +0000)
committerKarl Heuer <kwzh@gnu.org>
Mon, 22 May 1995 22:48:09 +0000 (22:48 +0000)
src/editfns.c

index 8640b89db5312f929a3544b27dae1ca14ca9e876..d61b74422ecfd1ebdc77465cb0fd9070ed4fe0bd 100644 (file)
@@ -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