Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #9031 from shuffle2/msvc-overflow-workaround
msvc: temporary workaround for C4789 false positive
  • Loading branch information
jordan-woyak committed Aug 16, 2020
2 parents 2c5920d + deb73d0 commit b5241d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/Core/HW/WiimoteCommon/WiimoteReport.h
Expand Up @@ -89,7 +89,8 @@ struct OutputReportLeds

u8 rumble : 1;
u8 ack : 1;
u8 : 2;
// This field must be named to work around a msvc bug.
u8 _padding : 2;
u8 leds : 4;
};
static_assert(sizeof(OutputReportLeds) == 1, "Wrong size");
Expand Down

0 comments on commit b5241d1

Please sign in to comment.