Permalink
Browse files

Cast a malloc to make g++ happy, #363

  • Loading branch information...
leto committed Mar 10, 2012
1 parent a54ec4c commit 6050332f3afd125ed606e0e94f85e945888934e6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/platform/generic/dl.c
@@ -44,7 +44,7 @@ push_handle_entry(void *handle)
{
struct handle_entry *e;
- e = malloc(sizeof(struct handle_entry));
+ e = (handle_entry *) malloc(sizeof(struct handle_entry));
if (!e) { return; }
e->handle = handle;
e->next = handle_list;

0 comments on commit 6050332

Please sign in to comment.