Skip to content

Commit

Permalink
zero-initialize local variable (fixes 32-bit x86)
Browse files Browse the repository at this point in the history
  • Loading branch information
plobsing committed Feb 27, 2011
1 parent f85a073 commit 298b2e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pmc/structview.pmc
Expand Up @@ -223,6 +223,7 @@ C<uint16>, C<int32>, C<uint32>, C<int64>(*), and C<uint64>(*)
switch (pack_type) {
case enum_type_struct:
case enum_type_union:
size = 0;
align = 1; /* sorry, no sub-byte alignment */
incr = 1;
i = 2;
Expand Down

0 comments on commit 298b2e2

Please sign in to comment.