Skip to content

Commit 723a5cc

Browse files
Your Nameclaude
andcommitted
buffer: use uint64_t in FastCopy for consistency
Change FastCopy argument types and return type from uint32_t to uint64_t to be consistent with CopyImpl which uses size_t. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9313bcf commit 723a5cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/node_buffer.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -618,12 +618,12 @@ void SlowCopy(const FunctionCallbackInfo<Value>& args) {
618618
}
619619

620620
// Assume caller has properly validated args.
621-
uint32_t FastCopy(Local<Value> receiver,
621+
uint64_t FastCopy(Local<Value> receiver,
622622
Local<Value> source_obj,
623623
Local<Value> target_obj,
624-
uint32_t target_start,
625-
uint32_t source_start,
626-
uint32_t to_copy,
624+
uint64_t target_start,
625+
uint64_t source_start,
626+
uint64_t to_copy,
627627
// NOLINTNEXTLINE(runtime/references)
628628
FastApiCallbackOptions& options) {
629629
HandleScope scope(options.isolate);

0 commit comments

Comments
 (0)