diff options
Diffstat (limited to 'perform/iopipe.c')
-rw-r--r-- | perform/iopipe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perform/iopipe.c b/perform/iopipe.c index 9c3e256..dea98aa 100644 --- a/perform/iopipe.c +++ b/perform/iopipe.c @@ -317,7 +317,7 @@ printf("Before getrusage() call\n"); for (i=0; i<nwrite; i++) { putc (PROGRESS, stderr); fflush (stderr); - offset = lseek (fd, 0, SEEK_SET); + offset = lseek (fd, (off_t)0, SEEK_SET); assert (0==offset); n = write (fd, the_data, (size_t)(size[0]*size[1])); assert (n>=0 && (size_t)n==size[0]*size[1]); @@ -396,7 +396,7 @@ printf("Before getrusage() call\n"); for (i=0; i<nread; i++) { putc (PROGRESS, stderr); fflush (stderr); - offset = lseek (fd, 0, SEEK_SET); + offset = lseek (fd, (off_t)0, SEEK_SET); assert (0==offset); n = read (fd, the_data, (size_t)(size[0]*size[1])); assert (n>=0 && (size_t)n==size[0]*size[1]); |