From 8f906f7790ac9041c9ee09cc9ac072d983fdb777 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 17 Nov 2000 02:36:46 +0200 Subject: Fixes for bugs in the usage of IO_CACHE Docs/manual.texi: Fixed the TRUNCATE syntax + Changelog include/my_sys.h: Added my_b_vprintf mysys/mf_iocache2.c: Added my_b_vprintf mysys/my_vsnprintf.c: Fixed fatal (new) bug mysys/thr_lock.c: Cleanup readline/bind.c: cleanup scripts/Makefile.am: Added mysqldumpslow sql-bench/crash-me.sh: Fixed TRUNCATE sql/log.cc: bug fix sql/log_event.cc: Removed compiler warnings sql/log_event.h: Fixed non portable header in binary dump sql/mf_iocache.cc: cleanup sql/mysqld.cc: Fixed loop problem on NT sql/slave.cc: cleanup sql/sql_class.cc: Fixed typos sql/sql_parse.cc: cleanup sql/sql_select.cc: bugfix sql/sql_table.cc: cleanup sql/sql_yacc.yy: Changed ALTER TABLE ... ORDER BY to get fewer warnings sql/unireg.cc: cleanup sql/unireg.h: Added missing define --- sql/unireg.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sql/unireg.cc') diff --git a/sql/unireg.cc b/sql/unireg.cc index 49f4a9fbfac..d02af0ef0d0 100644 --- a/sql/unireg.cc +++ b/sql/unireg.cc @@ -280,11 +280,11 @@ static uint pack_keys(uchar *keybuff,uint key_count,KEY *keyinfo) } /* Save keynames */ keyname_pos=pos; - *pos++=NAMES_SEP_CHAR; + *pos++=(uchar) NAMES_SEP_CHAR; for (key=keyinfo ; key != end ; key++) { uchar *tmp=(uchar*) strmov((char*) pos,key->name); - *tmp++=NAMES_SEP_CHAR; + *tmp++= (uchar) NAMES_SEP_CHAR; *tmp=0; pos=tmp; } @@ -458,7 +458,7 @@ static bool pack_fields(File file,List &create_fields) } /* Write fieldnames */ - buff[0]=NAMES_SEP_CHAR; + buff[0]=(uchar) NAMES_SEP_CHAR; if (my_write(file,(byte*) buff,1,MYF_RW)) DBUG_RETURN(1); i=0; -- cgit v1.2.1