summaryrefslogtreecommitdiff
path: root/mysys/array.c
diff options
context:
space:
mode:
authorDavi Arnaut <Davi.Arnaut@Sun.COM>2009-08-28 12:06:59 -0300
committerDavi Arnaut <Davi.Arnaut@Sun.COM>2009-08-28 12:06:59 -0300
commita0e44ec1e8d2352df6dbf40c959e2115c9884c7e (patch)
tree2b40359f8bd844b838b3cb47688b896a6f581f51 /mysys/array.c
parentedb71b0cdd4a780aaa678a3514cfe13a98e9dde3 (diff)
downloadmariadb-git-a0e44ec1e8d2352df6dbf40c959e2115c9884c7e.tar.gz
Fix for a few assorted compiler warnings.
Diffstat (limited to 'mysys/array.c')
-rw-r--r--mysys/array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/array.c b/mysys/array.c
index b65bd28616d..a1c49c2589d 100644
--- a/mysys/array.c
+++ b/mysys/array.c
@@ -67,7 +67,7 @@ my_bool init_dynamic_array2(DYNAMIC_ARRAY *array, uint element_size,
Since the dynamic array is usable even if allocation fails here malloc
should not throw an error
*/
- if (!(array->buffer= (char*) my_malloc_ci(element_size*init_alloc, MYF(0))))
+ if (!(array->buffer= (uchar*) my_malloc_ci(element_size*init_alloc, MYF(0))))
array->max_element=0;
DBUG_RETURN(FALSE);
}