summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2003-05-28 18:02:14 +0300
committerunknown <bell@sanja.is.com.ua>2003-05-28 18:02:14 +0300
commitf440077bd03869f48ff278bc2b73fab7a30e282b (patch)
tree35e592b1d7e85a032783b93a838cfb4d40955bf4
parent5f9d3e4276913351a9a8485654657d23b8aa7b6d (diff)
downloadmariadb-git-f440077bd03869f48ff278bc2b73fab7a30e282b.tar.gz
manual types casting to satisfy gcc 3.2.1 compiler
-rw-r--r--sql/item_create.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/item_create.cc b/sql/item_create.cc
index 723610c0df4..3edec7fdab0 100644
--- a/sql/item_create.cc
+++ b/sql/item_create.cc
@@ -464,8 +464,8 @@ Item *create_func_cast(Item *a, Item_cast cast_type, CHARSET_INFO *cs)
switch (cast_type) {
case ITEM_CAST_BINARY: res= new Item_func_binary(a); break;
case ITEM_CAST_CHAR:
- res= (cs == NULL) ? new Item_char_typecast(a) :
- new Item_func_conv_charset(a,cs);
+ res= (cs == NULL) ? (Item*) new Item_char_typecast(a) :
+ (Item*) new Item_func_conv_charset(a,cs);
break;
case ITEM_CAST_SIGNED_INT: res= new Item_func_signed(a); break;
case ITEM_CAST_UNSIGNED_INT: res= new Item_func_unsigned(a); break;