Skip to content

Conversation

@Fokko
Copy link
Contributor

@Fokko Fokko commented Apr 30, 2024

>>> (32768).bit_length()
16

From https://docs.python.org/3/library/stdtypes.html#int.bit_length

Return the number of bits necessary to represent an integer in binary, excluding the sign and leading zeros

Fixes #669

```python
>>> (32768).bit_length()
16
```

From https://docs.python.org/3/library/stdtypes.html#int.bit_length

> Return the number of bits necessary to represent an integer in binary, excluding the sign and leading zeros

Fixes apache#669
Copy link
Contributor

@HonahX HonahX left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the fix @Fokko

@HonahX HonahX merged commit 2dfa498 into apache:main May 1, 2024
@Fokko Fokko deleted the fd-fix-decimal branch May 1, 2024 06:30
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.

appending to a table with Decimal > 32767 results in int too big to convert

2 participants