Skip to content

Commit

Permalink
Merge pull request #59 from PDXostc/magnusfeuer-issue-57
Browse files Browse the repository at this point in the history
Fixed bug with pointer mixup
  • Loading branch information
magnusfeuer authored Aug 13, 2019
2 parents 0f93d7a + 7965fd5 commit f5862c5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dstc.h
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,11 @@ typedef dstc_callback_t CBCK;
default: \
if (sizeof(type size ) == sizeof(type)) \
memcpy((void*) payload, (void*) &_a##arg_id, sizeof(type size)); \
else \
memcpy((void*) payload, &_a##arg_id, sizeof(type size)); \
payload += sizeof(type size); \
else { \
void **tmp = (void**) &_a##arg_id; \
memcpy((void*) payload, *tmp, sizeof(type size)); \
} \
payload += sizeof(type size); \
}


Expand Down

0 comments on commit f5862c5

Please sign in to comment.