Commit 277a557e authored by unknown's avatar unknown

Merge poseidon.ndb.mysql.com:/home/tomas/mysql-4.1

into poseidon.ndb.mysql.com:/home/tomas/mysql-5.0


ndb/include/ndbapi/NdbRecAttr.hpp:
  Auto merged
parents 5b5f5071 a3f7796d
...@@ -312,7 +312,9 @@ inline ...@@ -312,7 +312,9 @@ inline
Int64 Int64
NdbRecAttr::int64_value() const NdbRecAttr::int64_value() const
{ {
return *(Int64*)theRef; Int64 val;
memcpy(&val,theRef,8);
return val;
} }
inline inline
...@@ -340,7 +342,9 @@ inline ...@@ -340,7 +342,9 @@ inline
Uint64 Uint64
NdbRecAttr::u_64_value() const NdbRecAttr::u_64_value() const
{ {
return *(Uint64*)theRef; Uint64 val;
memcpy(&val,theRef,8);
return val;
} }
inline inline
...@@ -368,14 +372,18 @@ inline ...@@ -368,14 +372,18 @@ inline
float float
NdbRecAttr::float_value() const NdbRecAttr::float_value() const
{ {
return *(float*)theRef; float val;
memcpy(&val,theRef,sizeof(val));
return val;
} }
inline inline
double double
NdbRecAttr::double_value() const NdbRecAttr::double_value() const
{ {
return *(double*)theRef; double val;
memcpy(&val,theRef,sizeof(val));
return val;
} }
inline inline
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment