Skip to content

Commit

Permalink
Fix swapping key numeric values on Big Endian machines.
Browse files Browse the repository at this point in the history
Fix typo error in CntIndexRange (kp instead of p)
Change version date
  modified:   storage/connect/connect.cc
  modified:   storage/connect/ha_connect.cc
  • Loading branch information
Buggynours committed Jun 3, 2015
1 parent 4821cd9 commit 0599d80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions storage/connect/connect.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */

/***********************************************************************/
/* Author Olivier BERTRAND bertrandop@gmail.com 2004-2012 */
/* Author Olivier BERTRAND bertrandop@gmail.com 2004-2015 */
/* */
/* WHAT THIS PROGRAM DOES: */
/* ----------------------- */
Expand Down Expand Up @@ -949,9 +949,9 @@ int CntIndexRange(PGLOBAL g, PTDB ptdb, const uchar* *key, uint *len,

} else
#if defined(WORDS_BIGENDIAN)
SetSwapValue(valp, (char*)kp);
SetSwapValue(valp, (char*)p);
#else // !WORDS_BIGENDIAN
valp->SetBinValue((void*)kp);
valp->SetBinValue((void*)p);
#endif // !WORDS_BIGENDIAN

if (trace) {
Expand Down
2 changes: 1 addition & 1 deletion storage/connect/ha_connect.cc
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
#define JSONMAX 10 // JSON Default max grp size

extern "C" {
char version[]= "Version 1.03.0007 April 30, 2015";
char version[]= "Version 1.03.0007 June 03, 2015";
#if defined(__WIN__)
char compver[]= "Version 1.03.0007 " __DATE__ " " __TIME__;
char slash= '\\';
Expand Down

0 comments on commit 0599d80

Please sign in to comment.