fix build error

pull/505/head
Chris Cunningham 2017-09-19 03:51:56 +00:00
parent b317b70c0b
commit 21c107d7ea
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ static void * stb__copy(void *arr, int itemsize)
}
int count = 2 * sizeof(int) + stb_sb_count(arr) * itemsize;
int *p = malloc(count);
int *p = (int *)malloc(count);
if (p) {
memcpy(p, stb__sbraw(arr), count);
return p+2;