Github user greghogan commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4305#discussion_r126921674
  
    --- Diff: 
flink-core/src/main/java/org/apache/flink/configuration/Configuration.java ---
    @@ -843,7 +843,7 @@ private float convertToFloat(Object o, float 
defaultValue) {
                }
                else if (o.getClass() == Double.class) {
                        double value = ((Double) o);
    -                   if (value <= Float.MAX_VALUE && value >= 
Float.MIN_VALUE) {
    +                   if (value <= Float.MAX_VALUE && value >= 
Float.NEGATIVE_INFINITY) {
    --- End diff --
    
    The original looks to be the correct test for underflow but should also 
test the negative range.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to