Bug #28287 Sign problem in test "ndb_restore_print"

- some platforms do strange things with char... use Int8 to be sure of signedness
This commit is contained in:
tomas@whalegate.ndb.mysql.com 2007-05-09 10:22:26 +02:00
parent 482e56f199
commit aaeca5bda8

View File

@ -164,7 +164,7 @@ public:
* *
* @return Char value. * @return Char value.
*/ */
char char_value() const; Int8 char_value() const;
/** /**
* Get value stored in NdbRecAttr object. * Get value stored in NdbRecAttr object.
@ -340,10 +340,10 @@ NdbRecAttr::short_value() const
} }
inline inline
char Int8
NdbRecAttr::char_value() const NdbRecAttr::char_value() const
{ {
return *(char*)theRef; return *(Int8*)theRef;
} }
inline inline