summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
authorunknown <miguel@hegel.local>2004-03-12 18:05:51 -0300
committerunknown <miguel@hegel.local>2004-03-12 18:05:51 -0300
commitd8192f1d40635e9457b6c2da9a6ef3029c0a8e7b (patch)
tree3b88a8c04ac4b700b4c0d0212cec8021f636fb23 /sql/opt_range.cc
parent03230631556de4926f97b6ef2b94c08392ac6907 (diff)
downloadmariadb-git-d8192f1d40635e9457b6c2da9a6ef3029c0a8e7b.tar.gz
Cast for VC++ compiler errors
sql/log_event.cc: Cast for VC++ compiler error sql/opt_range.cc: Cast for VC++ compiler error
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r--sql/opt_range.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index 6f97a5afe94..adcb3773775 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -2560,8 +2560,8 @@ QUICK_SELECT *get_quick_select_for_ref(THD *thd, TABLE *table, TABLE_REF *ref)
QUICK_RANGE *null_range;
*ref->null_ref_key= 1; // Set null byte then create a range
- if (!(null_range= new QUICK_RANGE(ref->key_buff, ref->key_length,
- ref->key_buff, ref->key_length,
+ if (!(null_range= new QUICK_RANGE((char*)ref->key_buff, ref->key_length,
+ (char*)ref->key_buff, ref->key_length,
EQ_RANGE)))
goto err;
*ref->null_ref_key= 0; // Clear null byte