Add explicit casts for the msvc C++ compiler.
This commit is contained in:
parent
c524986175
commit
7b9bd1880c
@ -44,7 +44,7 @@ dc_ihex_file_open (dc_ihex_file_t **result, dc_context_t *context, const char *f
|
||||
return DC_STATUS_INVALIDARGS;
|
||||
}
|
||||
|
||||
file = malloc (sizeof (dc_ihex_file_t));
|
||||
file = (dc_ihex_file_t *) malloc (sizeof (dc_ihex_file_t));
|
||||
if (file == NULL) {
|
||||
ERROR (context, "Failed to allocate memory.");
|
||||
return DC_STATUS_NOMEMORY;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user