From 0ea7577a725d27de30a4c2d6475728aa82158cb7 Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 23 Apr 2009 15:07:54 +0200 Subject: [PATCH] sign error on file position argument --- src/file.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/file.cc b/src/file.cc index 8fb76a3180..b8380d7248 100644 --- a/src/file.cc +++ b/src/file.cc @@ -383,7 +383,7 @@ File::Write (const Arguments& args) return Undefined(); } - size_t pos = args[1]->Uint32Value(); + off_t pos = args[1]->IntegerValue(); if (file->handle_->Has(FD_SYMBOL) == false) { printf("trying to write to a bad fd!\n"); @@ -428,7 +428,7 @@ File::Read (const Arguments& args) HandleScope scope; File *file = File::Unwrap(args.Holder()); size_t length = args[0]->IntegerValue(); - size_t pos = args[1]->Uint32Value(); + off_t pos = args[1]->IntegerValue(); int fd = file->GetFD();