summaryrefslogtreecommitdiff
path: root/sql/key.cc
diff options
context:
space:
mode:
authorunknown <gshchepa/uchum@gshchepa.loc>2007-04-29 11:56:23 +0500
committerunknown <gshchepa/uchum@gshchepa.loc>2007-04-29 11:56:23 +0500
commite8225073649844a43bc4ea6362a5df5e6210933b (patch)
treee18f9f59efd5cd56e540ee8d4c38bd94de389b96 /sql/key.cc
parent2503382629312a2a2a311e2c198530d457c5ea6c (diff)
downloadmariadb-git-e8225073649844a43bc4ea6362a5df5e6210933b.tar.gz
Patch to eliminate compilation errors under VC after bug #13191 fix.
Diffstat (limited to 'sql/key.cc')
-rw-r--r--sql/key.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/key.cc b/sql/key.cc
index d57d1570da7..5bb389fcb45 100644
--- a/sql/key.cc
+++ b/sql/key.cc
@@ -101,9 +101,9 @@ void key_copy(byte *key,TABLE *table,uint idx,uint key_length)
length= min(key_length, key_part->length);
Field *field= key_part->field;
CHARSET_INFO *cs= field->charset();
- uint bytes= field->get_key_image(key, length, cs, Field::itRAW);
+ uint bytes= field->get_key_image((char *) key, length, cs, Field::itRAW);
if (bytes < length)
- cs->cset->fill(cs, key + bytes, length - bytes, ' ');
+ cs->cset->fill(cs, (char *) key + bytes, length - bytes, ' ');
}
key+=length;
key_length-=length;