diff options
author | monty@narttu.mysql.fi <> | 2000-11-17 02:36:46 +0200 |
---|---|---|
committer | monty@narttu.mysql.fi <> | 2000-11-17 02:36:46 +0200 |
commit | 22415489f2bef07e1617cb93a5c3f3a8c332ce25 (patch) | |
tree | 09e51a2c4d96c3afa0d966f7469e46432fc6dc58 /sql/unireg.cc | |
parent | ca2cca8dce9fa5029f5a96d6b266e0fbdc4bc5f8 (diff) | |
download | mariadb-git-22415489f2bef07e1617cb93a5c3f3a8c332ce25.tar.gz |
Fixes for bugs in the usage of IO_CACHE
Diffstat (limited to 'sql/unireg.cc')
-rw-r--r-- | sql/unireg.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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_field> &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; |