You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sb...@apache.org on 2001/05/28 22:13:57 UTC

cvs commit: xml-xalan/java/src/org/apache/xml/dtm/ref DTMDefaultBase.java

sboag       01/05/28 13:13:57

  Modified:    java/src/org/apache/xml/dtm/ref Tag: DTM_EXP
                        DTMDefaultBase.java
  Log:
  Fix  bug with findGTE where it wasn't properly checking to see
  if the low was higher than the end.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.3   +2 -1      xml-xalan/java/src/org/apache/xml/dtm/ref/Attic/DTMDefaultBase.java
  
  Index: DTMDefaultBase.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/dtm/ref/Attic/DTMDefaultBase.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- DTMDefaultBase.java	2001/05/28 04:07:27	1.1.2.2
  +++ DTMDefaultBase.java	2001/05/28 20:13:57	1.1.2.3
  @@ -330,6 +330,7 @@
   
       int low = start;
       int high = start + (len - 1);
  +    int end = high;
   
       while (low <= high)
       {
  @@ -344,7 +345,7 @@
           return mid;
       }
   
  -    return (list[low] > value) ? low : -1;
  +    return (low <= end && list[low] > value) ? low : -1;
     }
   
     /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org