-
Notifications
You must be signed in to change notification settings - Fork 64
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
Fix crashing syncing thread when logging big integers #1336
Conversation
65e9f08
to
a1a4fcf
Compare
a1a4fcf
to
6178d6a
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1336 +/- ##
==========================================
- Coverage 79.64% 79.64% -0.01%
==========================================
Files 275 275
Lines 13517 13523 +6
==========================================
+ Hits 10766 10770 +4
- Misses 2751 2753 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. One optional thing to change
@@ -45,5 +53,17 @@ def assign(self, value: typing.Union[IntegerVal, float, int], *, wait: bool = Fa | |||
if not isinstance(value, IntegerVal): | |||
value = IntegerVal(value) | |||
|
|||
if value.value > Integer.MAX_32_BIT_INT or value.value < Integer.MIN_32_BIT_INT: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Slightly more readable syntax:
Integer.MIN_32_BIT_INT < value.value < Integer.MAX_32_BIT_INT
No description provided.