Skip to content

Commit 2a3166f

Browse files
committed
Fix swapping key numeric values on Big Endian machines.
Fix typo error in CntIndexRange (kp instead of p) Change version date modified: storage/connect/connect.cc modified: storage/connect/ha_connect.cc
1 parent 5a9e2e6 commit 2a3166f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

storage/connect/connect.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
1616

1717
/***********************************************************************/
18-
/* Author Olivier BERTRAND bertrandop@gmail.com 2004-2012 */
18+
/* Author Olivier BERTRAND bertrandop@gmail.com 2004-2015 */
1919
/* */
2020
/* WHAT THIS PROGRAM DOES: */
2121
/* ----------------------- */
@@ -949,9 +949,9 @@ int CntIndexRange(PGLOBAL g, PTDB ptdb, const uchar* *key, uint *len,
949949

950950
} else
951951
#if defined(WORDS_BIGENDIAN)
952-
SetSwapValue(valp, (char*)kp);
952+
SetSwapValue(valp, (char*)p);
953953
#else // !WORDS_BIGENDIAN
954-
valp->SetBinValue((void*)kp);
954+
valp->SetBinValue((void*)p);
955955
#endif // !WORDS_BIGENDIAN
956956

957957
if (trace) {

storage/connect/ha_connect.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@
169169
#define JSONMAX 10 // JSON Default max grp size
170170

171171
extern "C" {
172-
char version[]= "Version 1.03.0007 April 30, 2015";
172+
char version[]= "Version 1.03.0007 June 03, 2015";
173173
#if defined(__WIN__)
174174
char compver[]= "Version 1.03.0007 " __DATE__ " " __TIME__;
175175
char slash= '\\';

0 commit comments

Comments
 (0)