Skip to content

Commit

Permalink
Fix sign-compare warning when compiling with GCC 14 (AcademySoftwareF…
Browse files Browse the repository at this point in the history
…oundation#1749)

* Fix sign-compare warning when compiling with GCC 14
* Use C size_t instead of C++ std::size_t

Signed-off-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Darby Johnston <[email protected]>
  • Loading branch information
JeanChristopheMorinPerso authored and darbyjohnston committed Jun 14, 2024
1 parent c29feac commit 65afe0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opentimelineio/stackAlgorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ _normalize_tracks_lengths(
}
}

for (int i = 0; i < tracks.size(); i++)
for (size_t i = 0; i < tracks.size(); i++)
{
Track* old_track = tracks[i];
RationalTime track_duration = old_track->duration(error_status);
Expand Down

0 comments on commit 65afe0b

Please sign in to comment.