Skip to content

Commit f41f338

Browse files
feat: bump instrument-hooks to use int32_t as pid
1 parent e6a55ce commit f41f338

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/core/src/native_core/instruments/hooks_wrapper.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Napi::Number SetExecutedBenchmark(const Napi::CallbackInfo &info) {
5050
return Napi::Number::New(env, 1);
5151
}
5252

53-
uint32_t pid = info[0].As<Napi::Number>().Uint32Value();
53+
int32_t pid = info[0].As<Napi::Number>().Int32Value();
5454
std::string uri = info[1].As<Napi::String>().Utf8Value();
5555

5656
uint8_t result =
@@ -123,7 +123,7 @@ Napi::Number WriteEnvironment(const Napi::CallbackInfo &info) {
123123
return Napi::Number::New(env, 1);
124124
}
125125

126-
uint32_t pid = info[0].As<Napi::Number>().Uint32Value();
126+
int32_t pid = info[0].As<Napi::Number>().Int32Value();
127127

128128
uint8_t result = instrument_hooks_write_environment(hooks, pid);
129129
return Napi::Number::New(env, result);

0 commit comments

Comments
 (0)