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:
parent
482e56f199
commit
aaeca5bda8
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user