summaryrefslogtreecommitdiff
path: root/mysys
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
commit92e5f607a7f2512684603a80d19e4808cc546cc5 (patch)
treee90396228cd90fe22d0c1831170866e47b1602aa /mysys
parent93e43e7b4dd5eff6cbc5867d080e80fde6093dbf (diff)
downloadmariadb-git-92e5f607a7f2512684603a80d19e4808cc546cc5.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')
-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;