mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 11:28:15 +00:00
Fixed error: array subscript 2 is above array bounds of ‘const Uint8[2]’
Smart compilers don't like dereferencing off the end of arrays
(cherry picked from commit f6756047a4
)
This commit is contained in:
@@ -102,7 +102,7 @@ typedef struct
|
|||||||
Uint8 rgucAccelX[2]; /* 21 */
|
Uint8 rgucAccelX[2]; /* 21 */
|
||||||
Uint8 rgucAccelY[2]; /* 23 */
|
Uint8 rgucAccelY[2]; /* 23 */
|
||||||
Uint8 rgucAccelZ[2]; /* 25 */
|
Uint8 rgucAccelZ[2]; /* 25 */
|
||||||
Uint8 rgucSensorTimestamp[2]; /* 27 - 16/32 bit little endian */
|
Uint8 rgucSensorTimestamp[4]; /* 27 - 16/32 bit little endian */
|
||||||
|
|
||||||
} PS5StatePacketCommon_t;
|
} PS5StatePacketCommon_t;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user