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

Commit

Permalink
chakrashim: fix x64 build
Browse files Browse the repository at this point in the history
implicit conversion from size_t fails on x64 build. Add explicit
static_casts.

Reviewed-by: @kunalspathak
  • Loading branch information
Jianchun Xu committed Sep 1, 2015
1 parent 776499c commit c10332c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deps/chakrashim/src/v8typedarray.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ JsErrorCode Utils::NewTypedArray(ContextShim::GlobalType constructorIndex,
JsValueRef args[4] = {
contextShim->GetUndefined(),
*array_buffer,
*Integer::From(byte_offset),
*Integer::From(length)
*Integer::From(static_cast<uint32_t>(byte_offset)),
*Integer::From(static_cast<uint32_t>(length))
};
return JsConstructObject(constructor, args, _countof(args), result);
}
Expand Down

0 comments on commit c10332c

Please sign in to comment.