mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 19:11:46 +01:00
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
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue