aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-11-25 11:10:56 +0100
committerLukas Larsson <[email protected]>2011-12-01 14:10:03 +0100
commit8e653ead2f361ce37b6e00b85844a48bd0cab394 (patch)
tree60810980bf904d0ae892e85aeabb5344d42390a5
parent035279e92f9bb3f9601098f6a70ba6d398d6727f (diff)
downloadotp-8e653ead2f361ce37b6e00b85844a48bd0cab394.tar.gz
otp-8e653ead2f361ce37b6e00b85844a48bd0cab394.tar.bz2
otp-8e653ead2f361ce37b6e00b85844a48bd0cab394.zip
Fix 32 bit parameters
-rw-r--r--erts/emulator/drivers/common/efile_drv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/drivers/common/efile_drv.c b/erts/emulator/drivers/common/efile_drv.c
index 70917119e2..0364d0722a 100644
--- a/erts/emulator/drivers/common/efile_drv.c
+++ b/erts/emulator/drivers/common/efile_drv.c
@@ -3401,7 +3401,7 @@ file_outputv(ErlDrvData e, ErlIOVec *ev) {
reply_posix_error(desc, EINVAL);
goto done;
}
- d->c.sendfile.offset = (off_t) offsetT;
+ d->c.sendfile.offset = (off_t) offsetL;
#else
d->c.sendfile.offset = ((off_t) offsetH << 32) | offsetL;
#endif
@@ -3411,7 +3411,7 @@ file_outputv(ErlDrvData e, ErlIOVec *ev) {
reply_posix_error(desc, EINVAL);
goto done;
}
- d->c.sendfile.nbytes = (size_t) nbytesT;
+ d->c.sendfile.nbytes = (size_t) nbytesL;
#else
d->c.sendfile.nbytes = ((size_t) nbytesH << 32) | nbytesL;
#endif