mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-29 14:38:29 +00:00
Fix warnings: calloc-transposed-args
This commit is contained in:

committed by
Sam Lantinga

parent
0da2bd49c8
commit
d2ef15d8e6
@@ -321,7 +321,7 @@ SDL_Sensor *SDL_OpenSensor(SDL_SensorID instance_id)
|
||||
}
|
||||
|
||||
// Create and initialize the sensor
|
||||
sensor = (SDL_Sensor *)SDL_calloc(sizeof(*sensor), 1);
|
||||
sensor = (SDL_Sensor *)SDL_calloc(1, sizeof(*sensor));
|
||||
if (!sensor) {
|
||||
SDL_UnlockSensors();
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user