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
commit1bc8817d932867194488800ab66c75b578a636cb (patch)
tree3b88a8c04ac4b700b4c0d0212cec8021f636fb23 /sql/opt_range.cc
parentdb98fc869413bcb85bfb248f58f4a46682db0b7a (diff)
downloadmariadb-git-1bc8817d932867194488800ab66c75b578a636cb.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