diff options
author | monty@mysql.com <> | 2004-08-26 18:27:33 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2004-08-26 18:27:33 +0300 |
commit | ceba1429b731a0712f49bcd43f70aabc41e8094f (patch) | |
tree | f50012bc1acc5d741fe45620f11da82773be8227 /libmysql/libmysql.c | |
parent | 5e4df770e3282583c4eec633a700eaf3267864bf (diff) | |
parent | ea687ba5da331017a3600bfd36b5d247efb6f757 (diff) | |
download | mariadb-git-ceba1429b731a0712f49bcd43f70aabc41e8094f.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/my/mysql-4.1
Diffstat (limited to 'libmysql/libmysql.c')
-rw-r--r-- | libmysql/libmysql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index 2ddbaa0b693..e9961ed11e3 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -3429,7 +3429,7 @@ static void fetch_long_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field, char buff[22]; /* Enough for longlong */ char *end= longlong10_to_str(value, buff, field_is_unsigned ? 10: -10); /* Resort to string conversion which supports all typecodes */ - fetch_string_with_conversion(param, buff, end - buff); + fetch_string_with_conversion(param, buff, (uint) (end - buff)); break; } } @@ -3505,7 +3505,7 @@ static void fetch_float_with_conversion(MYSQL_BIND *param, MYSQL_FIELD *field, sprintf(buff, "%.*f", (int) field->decimals, value); end= strend(buff); } - fetch_string_with_conversion(param, buff, end - buff); + fetch_string_with_conversion(param, buff, (uint) (end - buff)); break; } } |