[Issue 8474] bitfields doesn't work with 32 bit fields
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jul 31 09:49:43 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8474
--- Comment #2 from monarchdodra at gmail.com 2012-07-31 09:49:40 PDT ---
More details: The problem only appears if the 32 (64) bit field is aligned with
0.
THIS will not create a bug:
--------
import std.bitmanip;
struct A
{
mixin(bitfields!(
uint, "a", 1,
uint, "b", 32,
uint, "c", 31,)
);
}
void main()
{
A a;
};
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list