You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/06/22 12:53:12 UTC
svn commit: r787195 -
/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/AbstractStructure.java
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;