summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorkent@mysql.com <>2005-01-24 17:10:03 +0100
committerkent@mysql.com <>2005-01-24 17:10:03 +0100
commit878e99e65d7176c4fbf4f42b5f29d8ade7b71611 (patch)
tree0281e46c8d3da55ece4bdebc43c4b8737b19e44b /include
parent67d246ac2fb10576abe6f37d5fdfbe7572935233 (diff)
downloadmariadb-git-878e99e65d7176c4fbf4f42b5f29d8ade7b71611.tar.gz
my_global.h:
Bug#7145 Added cast to doublestore() and ARM
Diffstat (limited to 'include')
-rw-r--r--include/my_global.h2
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];\