aboutsummaryrefslogtreecommitdiff
path: root/desiredata/src/d_soundfile.c
diff options
context:
space:
mode:
authorN.N. <matju@users.sourceforge.net>2009-06-03 02:26:34 +0000
committerN.N. <matju@users.sourceforge.net>2009-06-03 02:26:34 +0000
commit52c72503a7594a838dfbc92d6be02435f2f2aebc (patch)
treea68d6e526f8c327e4ea994cb6814a662e98a4399 /desiredata/src/d_soundfile.c
parent9bed1d12df95208e0b6cc94d0955361d7ae7a55c (diff)
fix post warnings
svn path=/trunk/; revision=11645
Diffstat (limited to 'desiredata/src/d_soundfile.c')
-rw-r--r--desiredata/src/d_soundfile.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/desiredata/src/d_soundfile.c b/desiredata/src/d_soundfile.c
index 2f7755ae..9b1ac342 100644
--- a/desiredata/src/d_soundfile.c
+++ b/desiredata/src/d_soundfile.c
@@ -518,7 +518,7 @@ static void soundfile_finishwrite(void *obj, char *filename, int fd,
int filetype, long nframes, long itemswritten, int bytesperframe, int swap) {
if (itemswritten < nframes) {
if (nframes < 0x7fffffff)
- error("soundfiler_write: %d out of %d bytes written", itemswritten, nframes);
+ error("soundfiler_write: %ld out of %ld bytes written", itemswritten, nframes);
/* try to fix size fields in header */
if (filetype == FORMAT_WAVE) {
long datasize = itemswritten * bytesperframe, v;
@@ -1224,10 +1224,7 @@ static void soundfiler_read(t_soundfiler *x, t_symbol *s, int argc, t_atom *argv
if (poswas < 0 || eofis < 0) {error("lseek failed"); goto done;}
lseek(fd, poswas, SEEK_SET);
framesinfile = (eofis - poswas) / (p.nchannels * p.bytespersample);
- if (framesinfile > maxsize) {
- error("soundfiler_read: truncated to %d elements", maxsize);
- framesinfile = maxsize;
- }
+ if (framesinfile > maxsize) {error("soundfiler_read: truncated to %ld elements", maxsize); framesinfile = maxsize;}
framesinfile = min(framesinfile, p.bytelimit / (p.nchannels * p.bytespersample));
finalsize = framesinfile;
for (int i=0; i<argc; i++) {