Skip to content

Commit c5d7e40

Browse files
committed
Fixed a minor errors
1 parent cbe0574 commit c5d7e40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/JavaScriptEngineSwitcher.ChakraCore/JsRt/JsContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ public static byte[] SerializeScript(string script)
438438
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
439439
{
440440
buffer = null;
441-
ulong bufferSize = 0;
441+
uint bufferSize = 0;
442442

443443
errorCode = NativeMethods.JsSerializeScript(script, buffer, ref bufferSize);
444444
JsErrorHelpers.ThrowIfError(errorCode);

src/JavaScriptEngineSwitcher.ChakraCore/JsRt/NativeMethods.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ internal static extern JsErrorCode JsRunScript(string script, JsSourceContext so
375375
string sourceUrl, out JsValue result);
376376

377377
[DllImport(DllName.Universal, CharSet = CharSet.Unicode)]
378-
internal static extern JsErrorCode JsSerializeScript(string script, byte[] buffer, ref ulong bufferSize);
378+
internal static extern JsErrorCode JsSerializeScript(string script, byte[] buffer, ref uint bufferSize);
379379

380380
[DllImport(DllName.Universal)]
381381
internal static extern JsErrorCode JsParseSerializedScriptWithCallback(

0 commit comments

Comments
 (0)