Commit 2eabdaa2 authored by unknown's avatar unknown
Browse files

my_global.h:

  Bug#7145 Added cast to doublestore() and ARM


include/my_global.h:
  Added cast to doublestore() and ARM
parent cc18b5f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1072,7 +1072,7 @@ do { doubleget_union _tmp; \
#define float4store(V,M) memcpy_fixed((byte*) V,(byte*) (&M),sizeof(float))

#if defined(__FLOAT_WORD_ORDER) && (__FLOAT_WORD_ORDER == __BIG_ENDIAN)
#define doublestore(T,V) do { *(T)= ((byte *) &V)[4];\
#define doublestore(T,V) do { *(((char*)T)+0)=(char) ((byte *) &V)[4];\
                              *(((char*)T)+1)=(char) ((byte *) &V)[5];\
                              *(((char*)T)+2)=(char) ((byte *) &V)[6];\
                              *(((char*)T)+3)=(char) ((byte *) &V)[7];\