Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit 0c1534f

Browse files
committed
chakrashim: fixing lint issue
Using `reinterpret_cast` instead of a C-style cast. PR-URL: #347 Reviewed-By: Jimmy Thomson <jithomso@microsoft.com>
1 parent 93d295e commit 0c1534f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

deps/chakrashim/src/v8string.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ int String::WriteOneByte(
102102
uint8_t* buffer, int start, int length, int options) const {
103103
size_t count = 0;
104104
if (JsCopyStringOneByte((JsValueRef)this, start, length,
105-
(char *)buffer, &count) == JsNoError) {
105+
reinterpret_cast<char *>(buffer),
106+
&count) == JsNoError) {
106107
if (!(options & String::NO_NULL_TERMINATION) &&
107108
(length == -1 || count < length)) {
108109
buffer[count] = '\0';

0 commit comments

Comments
 (0)