Commit 71bbff8d authored by Dinar Valeev's avatar Dinar Valeev

Fix BigEndian build

On BigEndian build fails with:
[ 109s]
/home/abuild/rpmbuild/BUILD/mariadb-10.0.17/storage/cassandra/ha_cassandra.cc:890:22:
error: invalid conversion from 'longlong*
{aka long long int*}

' to 'long long int' [-fpermissive]
[ 109s] value->x.long_value= (longlong *)*cass_data;
[ 109s] ^

This commit fixes it
Signed-off-by: default avatarDinar Valeev <dvaleev@suse.com>
parent 651a142a
...@@ -887,7 +887,7 @@ bool cassandra_to_dyncol_intLong(const char *cass_data, ...@@ -887,7 +887,7 @@ bool cassandra_to_dyncol_intLong(const char *cass_data,
{ {
value->type= DYN_COL_INT; value->type= DYN_COL_INT;
#ifdef WORDS_BIGENDIAN #ifdef WORDS_BIGENDIAN
value->x.long_value= (longlong *)*cass_data; value->x.long_value= (longlong)*cass_data;
#else #else
flip64(cass_data, (char *)&value->x.long_value); flip64(cass_data, (char *)&value->x.long_value);
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment