summaryrefslogtreecommitdiff
path: root/libmysql
diff options
context:
space:
mode:
authorunknown <konstantin@mysql.com>2004-06-26 04:54:11 +0400
committerunknown <konstantin@mysql.com>2004-06-26 04:54:11 +0400
commit7b9a0dd948de713dccfd9a54cee226d8ccc025c1 (patch)
tree52ea4fd66ebcc1372e21c18686b7c6e710820b07 /libmysql
parent3b79bf10e2afc3029eae6c1cc8cc94f27850b7b6 (diff)
downloadmariadb-git-7b9a0dd948de713dccfd9a54cee226d8ccc025c1.tar.gz
Fix for compilation failure on high-byte-first platforms.
include/my_global.h: Fix for libmysql compilation failure on high-byte-first systems: - add typecasting to char * in shortstore, longstore, doublestore macros libmysql/libmysql.c: - suppress possible warnings
Diffstat (limited to 'libmysql')
-rw-r--r--libmysql/libmysql.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c
index d1ae334b0aa..fd0c5024f8c 100644
--- a/libmysql/libmysql.c
+++ b/libmysql/libmysql.c
@@ -3122,7 +3122,7 @@ static uint read_binary_date(MYSQL_TIME *tm, uchar **pos)
static void send_data_long(MYSQL_BIND *param, MYSQL_FIELD *field,
longlong value)
{
- char *buffer= param->buffer;
+ char *buffer= (char *)param->buffer;
uint field_is_unsigned= (field->flags & UNSIGNED_FLAG);
switch (param->buffer_type) {
@@ -3178,7 +3178,7 @@ static void send_data_long(MYSQL_BIND *param, MYSQL_FIELD *field,
static void send_data_double(MYSQL_BIND *param, double value)
{
- char *buffer= param->buffer;
+ char *buffer= (char *)param->buffer;
switch(param->buffer_type) {
case MYSQL_TYPE_NULL: /* do nothing */
@@ -3231,7 +3231,7 @@ static void send_data_double(MYSQL_BIND *param, double value)
static void send_data_str(MYSQL_BIND *param, char *value, uint length)
{
- char *buffer= param->buffer;
+ char *buffer= (char *)param->buffer;
int err=0;
switch(param->buffer_type) {