diff --git a/libs/ardour/sndfilesource.cc b/libs/ardour/sndfilesource.cc index 6eb42d4b08..b1e5cc1d4c 100644 --- a/libs/ardour/sndfilesource.cc +++ b/libs/ardour/sndfilesource.cc @@ -461,7 +461,7 @@ SndFileSource::nondestructive_write_unlocked (Sample *data, framecnt_t cnt) return 0; } - int32_t frame_pos = _length; + framepos_t frame_pos = _length; if (write_float (data, frame_pos, cnt) != cnt) { return 0;