From 643cb9b8f30c8028403d5b38d6c6f65cf902e5a1 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 9 May 2007 10:22:26 +0200 Subject: [PATCH] Bug #28287 Sign problem in test "ndb_restore_print" - some platforms do strange things with char... use Int8 to be sure of signedness --- ndb/include/ndbapi/NdbRecAttr.hpp | 6 +++--- 1 file 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