diff options
| author | 2019-12-22 12:36:38 +1100 | |
|---|---|---|
| committer | 2019-12-22 12:36:38 +1100 | |
| commit | 019ea5a7e8bd5aedc64245fb73cafcc4e4f47c12 (patch) | |
| tree | 5eb20b72e7f11301ea1330f864dd0a30fd73762a | |
| parent | 5790f3da11809f1c94272fc636a2a17c88d33d2c (diff) | |
add padding to saa1099_noise to force alignment on Linux i686 (nw)
| -rw-r--r-- | src/devices/sound/saa1099.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/devices/sound/saa1099.h b/src/devices/sound/saa1099.h index 1452bdcb93c..c6b7382e38e 100644 --- a/src/devices/sound/saa1099.h +++ b/src/devices/sound/saa1099.h @@ -54,12 +54,15 @@ private: struct saa1099_noise { - saa1099_noise() { } + saa1099_noise() { (void)pad; } /* vars to simulate the noise generator output */ double counter = 0.0; double freq = 0.0; u32 level = 0xffffffffU; // noise polynomial shifter + + private: + u32 pad; // pad out structure to multiple of sizeof(double) }; void envelope_w(int ch); |
