fix incorrect use of int32_t for current position in file while writing to non-destru...
authorPaul Davis <paul@linuxaudiosystems.com>
Sun, 22 Feb 2015 16:10:25 +0000 (11:10 -0500)
committerPaul Davis <paul@linuxaudiosystems.com>
Sun, 22 Feb 2015 16:12:11 +0000 (11:12 -0500)
libs/ardour/sndfilesource.cc

index 6eb42d4b087c4cd7bf6f8721f4d4998742ecfbe0..b1e5cc1d4cccac1dbab64e928534ff37bbcdce1e 100644 (file)
@@ -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;