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

Commit

Permalink
chakrashim: fixing lint issue
Browse files Browse the repository at this point in the history
Using `reinterpret_cast` instead of a C-style cast.

PR-URL: #347
Reviewed-By: Jimmy Thomson <[email protected]>
  • Loading branch information
kfarnung committed Jul 25, 2017
1 parent 93d295e commit 0c1534f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deps/chakrashim/src/v8string.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ int String::WriteOneByte(
uint8_t* buffer, int start, int length, int options) const {
size_t count = 0;
if (JsCopyStringOneByte((JsValueRef)this, start, length,
(char *)buffer, &count) == JsNoError) {
reinterpret_cast<char *>(buffer),
&count) == JsNoError) {
if (!(options & String::NO_NULL_TERMINATION) &&
(length == -1 || count < length)) {
buffer[count] = '\0';
Expand Down

0 comments on commit 0c1534f

Please sign in to comment.