summaryrefslogtreecommitdiff
path: root/mysys/mf_iocache.c
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2002-08-12 03:33:46 +0300
committerunknown <monty@hundin.mysql.fi>2002-08-12 03:33:46 +0300
commit9b1930152db6ecd30b8cbcc7200af2baf7f82295 (patch)
treee90396228cd90fe22d0c1831170866e47b1602aa /mysys/mf_iocache.c
parent6148e5a42f1a6f0ea2a3bd127d2455267d419def (diff)
downloadmariadb-git-9b1930152db6ecd30b8cbcc7200af2baf7f82295.tar.gz
Changed IF(expr, column, NULL) to take type from column
Fixed some windows portability problems and removed some compiler warnings Cleaned up QUOTE() function and fixed bug in \0 and \Z handling. Docs/manual.texi: Changelog Added information about new IF() behaviour. libmysql/libmysql.def: Removed mysql_ssl_clear myisam/mi_dynrec.c: Minor cleanup mysql-test/r/func_str.result: Added more tests for QUOTE mysql-test/t/func_str.test: Added more tests for QUOTE mysys/mf_iocache.c: Removed compiler warnings sql/ha_innodb.cc: Added missing null to generated string. sql/item_cmpfunc.cc: Changed IF(expr, column, NULL) to take type from column sql/item_strfunc.cc: Cleaned up QUOTE() function and fixed bug in \0 and \Z handling. sql/log.cc: Minor cleanup sql/mysql_priv.h: Fixed problem with opt_enable_named_pipe sql/mysqld.cc: Fixed problem with opt_enable_named_pipe Fixed some syntax errors in windows code sql/set_var.cc: Removed compiler warnings sql/slave.cc: Removed compiler warnings sql/sql_show.cc: Removed compiler warnings
Diffstat (limited to 'mysys/mf_iocache.c')
-rw-r--r--mysys/mf_iocache.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mysys/mf_iocache.c b/mysys/mf_iocache.c
index a4bf09ef7a7..6f7fb907ad5 100644
--- a/mysys/mf_iocache.c
+++ b/mysys/mf_iocache.c
@@ -521,8 +521,9 @@ int _my_b_read_r(register IO_CACHE *info, byte *Buffer, uint Count)
length=(length <= info->read_length) ?
length + IO_ROUND_DN(info->read_length - length) :
length - IO_ROUND_UP(length - info->read_length) ;
- if (info->type != READ_FIFO && (length > info->end_of_file - pos_in_file))
- length=info->end_of_file - pos_in_file;
+ if (info->type != READ_FIFO &&
+ (length > (uint) (info->end_of_file - pos_in_file)))
+ length= (uint) (info->end_of_file - pos_in_file);
if (length == 0)
{
info->error=(int) read_len;