mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-10-23 11:05:00 +02:00
Remove union, use pointer tricks instead
This commit is contained in:
+4
-4
@@ -32,10 +32,10 @@ public:
|
||||
|
||||
private:
|
||||
CFMDownsampleRB m_ringBuffer;
|
||||
union {
|
||||
int32_t m_samplePack;
|
||||
int8_t m_samplePackBytes[4];
|
||||
};
|
||||
|
||||
int32_t m_samplePack;
|
||||
int32_t *m_samplePackBytes;
|
||||
|
||||
uint8_t m_packIndex;
|
||||
uint8_t m_downSampleIndex;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user