1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-03 14:03:52 +00:00

Fix casts.

This commit is contained in:
Bartosz Taudul 2020-03-02 12:29:32 +01:00
parent 50123298a7
commit 31dc44feee

View File

@ -857,7 +857,7 @@ macho_add_dsym (struct backtrace_state *state, const char *filename,
else else
{ {
dirnamelen = p - filename; dirnamelen = p - filename;
diralc = backtrace_alloc (state, dirnamelen + 1, error_callback, data); diralc = (char*)backtrace_alloc (state, dirnamelen + 1, error_callback, data);
if (diralc == NULL) if (diralc == NULL)
goto fail; goto fail;
memcpy (diralc, filename, dirnamelen); memcpy (diralc, filename, dirnamelen);
@ -875,7 +875,7 @@ macho_add_dsym (struct backtrace_state *state, const char *filename,
+ dsymsuffixdirlen + dsymsuffixdirlen
+ basenamelen + basenamelen
+ 1); + 1);
dsym = backtrace_alloc (state, dsymlen, error_callback, data); dsym = (char*)backtrace_alloc (state, dsymlen, error_callback, data);
if (dsym == NULL) if (dsym == NULL)
goto fail; goto fail;