https://issues.apache.org/bugzilla/show_bug.cgi?id=51498

             Bug #: 51498
           Summary: Countif.evaluate(int cmpResult) wrong return value for
                    GE
           Product: POI
           Version: 3.8-dev
          Platform: PC
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: POI Overall
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


In org.apache.poi.ss.formula.functions.Countif, method 
public boolean evaluate(int cmpResult) (LINE 127)

The retunvalue for GE is wrong, it is the same like LE.

switch (_code) {            
  ...
  case LE: return cmpResult <= 0;
  ...
  case GE: return cmpResult <= 0; (LINE 136)
}

wrong:  case GE: return cmpResult <= 0
right:  case GE: return cmpResult >= 0

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to