Skip to content

Commit

Permalink
camera: Fix compiler warnings on some platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 1, 2024
1 parent 5532169 commit a3b3e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/camera/SDL_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ SDL_Camera *SDL_OpenCameraDevice(SDL_CameraDeviceID instance_id, const SDL_Camer
// Start the camera thread if necessary
if (!camera_driver.impl.ProvidesOwnCallbackThread) {
char threadname[64];
SDL_snprintf(threadname, sizeof (threadname), "SDLCamera%d", instance_id);
SDL_snprintf(threadname, sizeof (threadname), "SDLCamera%d", (int) instance_id);
device->thread = SDL_CreateThreadInternal(CameraThread, threadname, 0, device);
if (!device->thread) {
ClosePhysicalCameraDevice(device);
Expand Down

0 comments on commit a3b3e7e

Please sign in to comment.