Fix warnings and remove casts by adding copy_vx_vx_uchar() functions.
[blender.git] / source / blender / editors / space_view3d / drawobject.c
index cd3a4a31fed1d01accfea748f66c408e491ece9b..8e664d744514326b092f3ccc17b7becf1ee5b520 100644 (file)
@@ -829,7 +829,7 @@ void view3d_cached_text_draw_add(const float co[3],
        BLI_LINKS_PREPEND(g_v3d_strings[g_v3d_string_level], vos);
 
        copy_v3_v3(vos->vec, co);
-       copy_v4_v4_char((char *)vos->col.ub, (const char *)col);
+       copy_v4_v4_uchar(vos->col.ub, col);
        vos->xoffs = xoffs;
        vos->flag = flag;
        vos->str_len = str_len;