Skip to content

Commit a852d2b

Browse files
Fix sign-compare warning when compiling with GCC 14
Signed-off-by: Jean-Christophe Morin <jean_christophe_morin@hotmail.com>
1 parent 4b3b673 commit a852d2b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/opentimelineio/stackAlgorithm.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#include "opentimelineio/trackAlgorithm.h"
88
#include "opentimelineio/transition.h"
99

10+
#include <cstddef>
11+
1012
namespace opentimelineio { namespace OPENTIMELINEIO_VERSION {
1113

1214
typedef std::map<Track*, std::map<Composable*, TimeRange>> RangeTrackMap;
@@ -144,7 +146,7 @@ _normalize_tracks_lengths(
144146
}
145147
}
146148

147-
for (int i = 0; i < tracks.size(); i++)
149+
for (std::size_t i = 0; i < tracks.size(); i++)
148150
{
149151
Track* old_track = tracks[i];
150152
RationalTime track_duration = old_track->duration(error_status);

0 commit comments

Comments
 (0)