Author: Armin Rigo <[email protected]>
Branch:
Changeset: r901:a3adced7a044
Date: 2012-08-27 21:58 +0200
http://bitbucket.org/cffi/cffi/changeset/a3adced7a044/
Log: Fix.
diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c
--- a/c/_cffi_backend.c
+++ b/c/_cffi_backend.c
@@ -3117,9 +3117,8 @@
assert(offset == 0);
offset = maxsize;
}
- else {
- offset = (offset + alignment - 1) & ~(alignment-1);
- }
+ offset = (offset + alignment - 1) & ~(alignment-1);
+
/* Like C, if the size of this structure would be zero, we compute it
as 1 instead. But for ctypes support, we allow the manually-
specified totalsize to be zero in this case. */
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit