Commit 643cb9b8 authored by unknown's avatar unknown

Bug #28287 Sign problem in test "ndb_restore_print"

- some platforms do strange things with char... use Int8 to be sure of signedness

parent e9315793
...@@ -164,7 +164,7 @@ public: ...@@ -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 ...@@ -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
......
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