mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
sign error on file position argument
This commit is contained in:
1 parent
8a8e9df72e
commit
0ea7577a72
1 file changed
+2
-2
+2
-2
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user