Skip to content

Commit

Permalink
more linux iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
jraymakers committed Jun 23, 2024
1 parent a45cb42 commit 0a79514
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/value_conversion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,12 @@ Napi::Value ValueConversion::ToJS(Napi::Env &env, double val) {
return Napi::Number::New(env, val);
}

#ifndef __linux__
// #ifndef __linux__
template <>
Napi::Value ValueConversion::ToJS(Napi::Env &env, size_t val) {
return Napi::Number::New(env, val);
}
#endif
// #endif

template <>
Napi::Value ValueConversion::ToJS(Napi::Env &env, int8_t val) {
Expand Down Expand Up @@ -390,12 +390,12 @@ idx_t ValueConversion::FromJS(const Napi::CallbackInfo &info, idx_t offset) {
return GetValue(info, offset).As<Napi::Number>().Int64Value();
}

#ifndef __linux__
// #ifndef __linux__
template <>
size_t ValueConversion::FromJS(const Napi::CallbackInfo &info, idx_t offset) {
return GetValue(info, offset).As<Napi::Number>().Int64Value();
}
#endif
// #endif

template <>
int64_t ValueConversion::FromJS(const Napi::CallbackInfo &info, idx_t offset) {
Expand Down

0 comments on commit 0a79514

Please sign in to comment.