[cc65] bit field bug in 2.13.0?

From: Johan Kotlinski <kotlinski1gmail.com>
Date: 2009-10-20 03:13:12
#include <assert.h>

struct {
    int foo : 7;
    int bar : 4;
} baz = { 0, 2 };

int main() {
    char bar = baz.bar;
    assert(2 == bar);
}

Assert fails. (SVN rev 4381)

Cheers,
Johan
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Oct 20 03:13:37 2009

This archive was generated by hypermail 2.1.8 : 2009-10-20 03:13:40 CEST