Small memory fixes

I have been using PVS Studio for a month. Now I decided to use it on my SDL2 project. It detected three fixes that would reduce structures size. Note that I use the latest vcpkg release of SDL2 on Windows.The suggested fixes are as following:

These aren’t bad advice, but we can’t change structs in public headers, as it would break binary compatibility with existing apps.

2 Likes

We should definitely fix this in SDL 2.1, thanks!

3 Likes

Pleasure to be helpful.