Silence some compiler warnings.

This commit is contained in:
Miku AuahDark
2022-12-06 00:16:38 +08:00
parent 32bebfd1fc
commit 0753e7eee7
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ std::vector<float> Sensor::getData(SensorType type)
std::vector<float> values(3);
if (SDL_SensorGetData(sensors[type], values.data(), values.size()) != 0)
if (SDL_SensorGetData(sensors[type], values.data(), (int) values.size()) != 0)
{
const char *name = nullptr;
getConstant(type, name);