Skip to content

Fix warnings Aug 5, 2023 #228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/JavaScriptKit/ConvertibleToJSValue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ extension Array where Element == ConvertibleToJSValue {
// fast path for empty array
guard self.count != 0 else { return body([]) }

func _withRawJSValues<T>(
func _withRawJSValues(
_ values: [ConvertibleToJSValue], _ index: Int,
_ results: inout [RawJSValue], _ body: ([RawJSValue]) -> T
) -> T {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,20 @@
///
/// @param value The value to convert.
/// @param is_signed Whether to treat the value as a signed integer or not.
#if __wasi__
__attribute__((__import_module__("javascript_kit"),
__import_name__("swjs_i64_to_bigint")))
#endif
extern JavaScriptObjectRef _i64_to_bigint(const long long value, bool is_signed);

/// Converts the provided BigInt to an Int64 or UInt64.
///
/// @param ref The target JavaScript object.
/// @param is_signed Whether to treat the return value as a signed integer or not.
#if __wasi__
__attribute__((__import_module__("javascript_kit"),
__import_name__("swjs_bigint_to_i64")))
#endif
extern long long _bigint_to_i64(const JavaScriptObjectRef ref, bool is_signed);

#endif /* _CJavaScriptBigIntSupport_h */