fix incorrect use of int32_t for current position in file while writing to non-destructive sndfilesources

This commit is contained in:
Paul Davis 2015-02-22 11:10:25 -05:00
parent 5305501fe9
commit 6f0fa71bd3

View file

@ -463,7 +463,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;