diff options
author | unknown <tomas@poseidon.ndb.mysql.com> | 2005-01-21 18:07:22 +0100 |
---|---|---|
committer | unknown <tomas@poseidon.ndb.mysql.com> | 2005-01-21 18:07:22 +0100 |
commit | 277a557e4581393ddfea5756f37c2a92fc8a1cf4 (patch) | |
tree | 3be44af7d883c8aa38ac8a18b4ec8e8b9d8ec881 /ndb | |
parent | 5b5f5071ea6823292f0a52c3046713ef01a0bfe5 (diff) | |
parent | a3f7796dd93baebe835a98992c775a099da0b0b2 (diff) | |
download | mariadb-git-277a557e4581393ddfea5756f37c2a92fc8a1cf4.tar.gz |
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
Diffstat (limited to 'ndb')
-rw-r--r-- | ndb/include/ndbapi/NdbRecAttr.hpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/ndb/include/ndbapi/NdbRecAttr.hpp b/ndb/include/ndbapi/NdbRecAttr.hpp index 43883cc91f2..e2c58731c35 100644 --- a/ndb/include/ndbapi/NdbRecAttr.hpp +++ b/ndb/include/ndbapi/NdbRecAttr.hpp @@ -312,7 +312,9 @@ inline Int64 NdbRecAttr::int64_value() const { - return *(Int64*)theRef; + Int64 val; + memcpy(&val,theRef,8); + return val; } inline @@ -340,7 +342,9 @@ inline Uint64 NdbRecAttr::u_64_value() const { - return *(Uint64*)theRef; + Uint64 val; + memcpy(&val,theRef,8); + return val; } inline @@ -368,14 +372,18 @@ inline float NdbRecAttr::float_value() const { - return *(float*)theRef; + float val; + memcpy(&val,theRef,sizeof(val)); + return val; } inline double NdbRecAttr::double_value() const { - return *(double*)theRef; + double val; + memcpy(&val,theRef,sizeof(val)); + return val; } inline |