Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix warning.
  • Loading branch information
Matlo committed Sep 8, 2014
1 parent 6ce43f4 commit 2ed0ad4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/connectors/btds4.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ static int read_ds4_interrupt(int btds4_number)
fprintf(stderr, "error reading ds4 interrupt\n");
}

s_report_ds4* current = &((s_btds4_report*)buf)->report;
unsigned char* pbuf = buf;
s_report_ds4* current = &((s_btds4_report*)pbuf)->report;
s_report_ds4* previous = &states[btds4_number].previous;

ds4_wrapper(btds4_number, current, previous, states[btds4_number].joystick_id);
Expand Down

0 comments on commit 2ed0ad4

Please sign in to comment.