Skip to content

Commit 0092b2c

Browse files
committed
buffer: cast to uint32_t
1 parent d552261 commit 0092b2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_buffer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,7 @@ void StaticCopy(const FunctionCallbackInfo<Value>& args) {
15061506
memmove(dest, src, bytes_to_copy);
15071507
}
15081508

1509-
args.GetReturnValue().Set(static_cast<double>(bytes_to_copy));
1509+
args.GetReturnValue().Set(static_cast<uint32_t>(bytes_to_copy));
15101510
}
15111511

15121512
template <encoding encoding>

0 commit comments

Comments
 (0)