File bigendian_type_fixes.patch of Package mariadb-connector-c

Author: Adam Majer <amajer@suse.de>
Date: Fri Mar  3 14:57:53 CET 2017
Summary: Fix build failure on Big Endien machines

include/my_global.h:930:31: warning: dereferencing 'void *' pointer [enabled by default]
                                *((T)+2)=(char) ((uchar *) &A)[1];\
                                ^
libmariadb/my_stmt_codec.c:361:7: note: in expansion of macro 'float4store'
     float4store(r_param->buffer, fval);
     ^
libmariadb/my_stmt_codec.c:361:7: error: invalid use of void expression

Index: mariadb-connector-c-2.3.2-src/libmariadb/my_stmt_codec.c
===================================================================
--- mariadb-connector-c-2.3.2-src.orig/libmariadb/my_stmt_codec.c
+++ mariadb-connector-c-2.3.2-src/libmariadb/my_stmt_codec.c
@@ -358,7 +358,7 @@ static void convert_from_long(MYSQL_BIND
     {
       float fval;
       fval= is_unsigned ? (float)(ulonglong)(val) : (float)val;
-      float4store(r_param->buffer, fval);
+      float4store((uchar *)r_param->buffer, fval);
       *r_param->error= is_unsigned ? (ulonglong)fval != (ulonglong)val : (longlong)fval != val;
       r_param->buffer_length= 4;
     }