diff options
author | unknown <tomas@whalegate.ndb.mysql.com> | 2007-05-09 10:22:26 +0200 |
---|---|---|
committer | unknown <tomas@whalegate.ndb.mysql.com> | 2007-05-09 10:22:26 +0200 |
commit | 643cb9b8f30c8028403d5b38d6c6f65cf902e5a1 (patch) | |
tree | 84549ccda6249e4da66cc1b7ffcef504fe357f2e /ndb | |
parent | e9315793229d8b7bedc31f1bb0a9a0d586e9a7f0 (diff) | |
download | mariadb-git-643cb9b8f30c8028403d5b38d6c6f65cf902e5a1.tar.gz |
Bug #28287 Sign problem in test "ndb_restore_print"
- some platforms do strange things with char... use Int8 to be sure of signedness
Diffstat (limited to 'ndb')
-rw-r--r-- | ndb/include/ndbapi/NdbRecAttr.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ndb/include/ndbapi/NdbRecAttr.hpp b/ndb/include/ndbapi/NdbRecAttr.hpp index f5777cdddb3..92cd5706a8d 100644 --- a/ndb/include/ndbapi/NdbRecAttr.hpp +++ b/ndb/include/ndbapi/NdbRecAttr.hpp @@ -164,7 +164,7 @@ public: * * @return Char value. */ - char char_value() const; + Int8 char_value() const; /** * Get value stored in NdbRecAttr object. @@ -340,10 +340,10 @@ NdbRecAttr::short_value() const } inline -char +Int8 NdbRecAttr::char_value() const { - return *(char*)theRef; + return *(Int8*)theRef; } inline |