Skip to content

Commit f55de28

Browse files
committed
Fix MSVC compiler warning
reg.: conversion from 'size_t' to 'int', possible loss of data (C4267)
1 parent da9fc95 commit f55de28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/importexport/guitarpro/internal/gtp/gpconverter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ void GPConverter::convertVoices(const std::vector<std::unique_ptr<GPVoice> >& vo
521521
fillUncompletedMeasure(ctx);
522522
}
523523

524-
int currentTrackFirstVoice = ctx.curTrack;
524+
track_idx_t currentTrackFirstVoice = ctx.curTrack;
525525
for (const auto& voice : voices) {
526526
ctx.curTrack = currentTrackFirstVoice + voice->position();
527527
convertVoice(voice.get(), ctx);

0 commit comments

Comments
 (0)