commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r787195 - /commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/AbstractStructure.java
Date Mon, 22 Jun 2009 10:53:12 GMT
Author: mturk
Date: Mon Jun 22 10:53:12 2009
New Revision: 787195

URL: http://svn.apache.org/viewvc?rev=787195&view=rev
Log:
Align only if structure members count is larger then one

Modified:
    commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/AbstractStructure.java

Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/AbstractStructure.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/AbstractStructure.java?rev=787195&r1=787194&r2=787195&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/AbstractStructure.java
(original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/AbstractStructure.java
Mon Jun 22 10:53:12 2009
@@ -110,7 +110,7 @@
                 else
                     sizeof += esizes[i];
             }
-            if ((sizeof > align) && (esizes[count - 1] > 1))
+            if (count > 1)
                 sizeof = align(sizeof, align);
         }
         inited = true;



Mime
View raw message