From: brarcher Date: Wed, 30 Jul 2014 12:49:11 +0000 (+0000) Subject: tests: cast output of malloc() to goal type X-Git-Tag: 0.10.0~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a86c344d5239236fd853d346e74ff6d82fc0be4d;p=check tests: cast output of malloc() to goal type clang++ did not like casting void* to char* implicitly. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1185 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- diff --git a/tests/check_check_master.c b/tests/check_check_master.c index 0484488..af5c758 100644 --- a/tests/check_check_master.c +++ b/tests/check_check_master.c @@ -282,7 +282,7 @@ char * escape_percent(const char *original, size_t original_size); char * escape_percent(const char *original, size_t original_size) { /* In the worst case every character is a %*/ - char *result = malloc(original_size*2); + char *result = (char*)malloc(original_size*2); size_t read_index; size_t write_index;