diff options
author | unknown <kent@mysql.com> | 2005-01-24 17:10:03 +0100 |
---|---|---|
committer | unknown <kent@mysql.com> | 2005-01-24 17:10:03 +0100 |
commit | 2eabdaa2f773202ac90be9151deaf5d5b0744db1 (patch) | |
tree | 0281e46c8d3da55ece4bdebc43c4b8737b19e44b /include | |
parent | cc18b5f72aca1974299fa1db284f950c70f6f897 (diff) | |
download | mariadb-git-2eabdaa2f773202ac90be9151deaf5d5b0744db1.tar.gz |
my_global.h:
Bug#7145 Added cast to doublestore() and ARM
include/my_global.h:
Added cast to doublestore() and ARM
Diffstat (limited to 'include')
-rw-r--r-- | include/my_global.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/my_global.h b/include/my_global.h index ff59f7bfc55..f54a18649c5 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -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];\ |