Skip to content
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

Support parsing '-nan' #3329

Merged
merged 1 commit into from
Mar 22, 2023
Merged

Support parsing '-nan' #3329

merged 1 commit into from
Mar 22, 2023

Conversation

sazzad16
Copy link
Contributor

Due to usages of sprintf(str, "%.15g", d); when d is NaN.

From @LiorKogan: "We should treat -nan as nan".

References:

Due to usages of `sprintf(str, "%.15g", d);` when d is NaN.

From @LiorKogan: "We should treat `-nan` as `nan`".

References:
- RedisGraph/RedisGraph#2930
@codecov-commenter
Copy link

Codecov Report

Patch coverage has no change and project coverage change: -0.01 ⚠️

Comparison is base (fe96e93) 67.00% compared to head (8a4fd20) 67.00%.

❗ Current head 8a4fd20 differs from pull request most recent head 7eb9285. Consider uploading reports for the commit 7eb9285 to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #3329      +/-   ##
============================================
- Coverage     67.00%   67.00%   -0.01%     
+ Complexity     4660     4657       -3     
============================================
  Files           263      263              
  Lines         15088    15088              
  Branches        951      951              
============================================
- Hits          10110    10109       -1     
+ Misses         4571     4570       -1     
- Partials        407      409       +2     
Impacted Files Coverage Δ
...java/redis/clients/jedis/util/DoublePrecision.java 80.00% <ø> (ø)

... and 3 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sazzad16 sazzad16 merged commit 281003b into redis:master Mar 22, 2023
@sazzad16 sazzad16 deleted the minus-nan branch March 22, 2023 13:03
banker pushed a commit to banker/jedis that referenced this pull request Mar 28, 2023
Due to usages of `sprintf(str, "%.15g", d);` when d is NaN.

From @LiorKogan: "We should treat `-nan` as `nan`".

References:
- RedisGraph/RedisGraph#2930
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants