From 8e653ead2f361ce37b6e00b85844a48bd0cab394 Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Fri, 25 Nov 2011 11:10:56 +0100 Subject: Fix 32 bit parameters --- erts/emulator/drivers/common/efile_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'erts/emulator/drivers/common') 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 -- cgit v1.2.3