diff --git a/modules/juce_javascript/detail/juce_QuickJSHelpers.h b/modules/juce_javascript/detail/juce_QuickJSHelpers.h index 27ff9d4a2e..dff3e8a4b4 100644 --- a/modules/juce_javascript/detail/juce_QuickJSHelpers.h +++ b/modules/juce_javascript/detail/juce_QuickJSHelpers.h @@ -253,7 +253,7 @@ static var tryQuickJSToJuce (const qjs::QuickJSContext::ValuePtr& ptr, { int64_t i = 0; JS_ToBigInt64 (ptr.context, std::addressof (i), ptr.value); - return i; + return var((juce::int64)i); }if(JS_IsInteger(ptr.value)) { int32_t i = 0;