directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r168083 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/BitString.java
Date Wed, 04 May 2005 05:53:54 GMT
Author: elecharny
Date: Tue May  3 22:53:53 2005
New Revision: 168083

URL: http://svn.apache.org/viewcvs?rev=168083&view=rev
Log:
Corrected a bug : the nbInt class member was not set correctly when the setData function was
called.

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/BitString.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/BitString.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/BitString.java?rev=168083&r1=168082&r2=168083&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/BitString.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/primitives/BitString.java
Tue May  3 22:53:53 2005
@@ -231,7 +231,7 @@
 
         int nbBytes = bytes.length - 1;
 
-        int nbInts  = ( nbBytes / 4 ) + ( ( ( nbBytes % 4 ) != 0 ) ? 1 : 0 );
+        nbInts  = ( nbBytes / 4 ) + ( ( ( nbBytes % 4 ) != 0 ) ? 1 : 0 );
 
         if ( ( nbInts > DEFAULT_LENGTH ) && ( ints.length < nbInts ) )
         {



Mime
View raw message