Skip to content

Commit 8454ed6

Browse files
cast before usage in echo
1 parent 3878d55 commit 8454ed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/ch/WScriptJsrt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ JsValueRef __stdcall WScriptJsrt::EchoCallback(JsValueRef callee, bool isConstru
134134
}
135135
charcount_t len;
136136
LPWSTR ws = str.GetWideString(&len);
137-
LPWSTR wsNoNull = new WCHAR[len + 1];
137+
LPWSTR wsNoNull = new WCHAR[((size_t)len) + 1];
138138
charcount_t newIndex = 0;
139139
for (charcount_t j = 0; j < len; j++)
140140
{

0 commit comments

Comments
 (0)