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

Commit

Permalink
修复丢失精度警告
Browse files Browse the repository at this point in the history
  • Loading branch information
Srar committed Jul 18, 2019
1 parent 9bbc8a6 commit 0bab030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/native/rwevent_process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ void RwEventProcess::New(const Nan::FunctionCallbackInfo<v8::Value> &info)
if (info.IsConstructCall())
{
// Invoked as constructor: `new RwEventProcess(...)`
long handle = info[0]->IsUndefined() ? 0 : info[0]->NumberValue();
long handle = info[0]->IsUndefined() ? 0 : (long)info[0]->NumberValue();
RwEventProcess *obj = new RwEventProcess((HANDLE)handle);
obj->Wrap(info.This());
info.GetReturnValue().Set(info.This());
Expand Down

0 comments on commit 0bab030

Please sign in to comment.