Skip to content

Conversation

Xmader
Copy link
Member

@Xmader Xmader commented Mar 28, 2023

This pull request resolves the following internal ticket: https://distributive.atlassian.net/browse/BF2-42

@Xmader Xmader changed the base branch from main to BF-31 March 28, 2023 21:05
@Xmader
Copy link
Member Author

Xmader commented Mar 28, 2023

This would also fix the ci tests

Xmader added 2 commits March 28, 2023 21:28
… to JS functions

`JS_NewUCStringCopyN` only copies by the specified length `u16Length`, so no need to make another `memcpy` call
@Xmader Xmader requested a review from zollqir March 28, 2023 21:48
@Xmader Xmader changed the title BF-42 BF-42: UCS4-range strings do not work properly when passed as arguments to JS-defined functions Mar 30, 2023
returnType.setBigInt(bigint);
} else if (_PyLong_NumBits(object) <= 53) { // num <= JS Number.MAX_SAFE_INTEGER, the mantissa of a float64 is 53 bits (with 52 explicitly stored and the highest bit always being 1)
uint64_t num = PyLong_AsLongLong(object);
int64_t num = PyLong_AsLongLong(object);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants