diff --git a/1984/decot/decot.c b/1984/decot/decot.c index 1069eb7d9..7aa30e532 100644 --- a/1984/decot/decot.c +++ b/1984/decot/decot.c @@ -21,7 +21,7 @@ int dup, signal; goto _0; _O: while (!(k['a'] <<= - dup)) { /*/*\*/ - static struct tag u = {4}; + union tag u x{4}; } } diff --git a/thanks-for-fixes.md b/thanks-for-fixes.md index 482bc9d02..3b3d3110f 100644 --- a/thanks-for-fixes.md +++ b/thanks-for-fixes.md @@ -127,6 +127,10 @@ char x {sizeof( and changing the type of `k` to be an `int`. +Additionally, because of the `#define union static struct` there is no need to +have in the code `static struct` as we can have it like the original code which +has it as `union`. + Originally Yusuke supplied a patch so that this entry would compile with gcc - but not clang - or at least some versions.