summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <kent@mysql.com>2005-01-24 17:10:03 +0100
committerunknown <kent@mysql.com>2005-01-24 17:10:03 +0100
commit2eabdaa2f773202ac90be9151deaf5d5b0744db1 (patch)
tree0281e46c8d3da55ece4bdebc43c4b8737b19e44b /include
parentcc18b5f72aca1974299fa1db284f950c70f6f897 (diff)
downloadmariadb-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.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];\