[pypy-commit] cffi default: Fix.
arigo
noreply at buildbot.pypy.org
Mon Aug 27 21:58:44 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
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. */
More information about the pypy-commit
mailing list