Javier Kohen to Derazhne. Ensign:
At the stardate 15-Apr-97, Alexander Derazhne established a sub-space link to
All refering to About bit-field syntax.
AD> struct A { unsigned int x : 1, y : 2, z : 5;
;
AD> struct B { unsigned int x : 1; unsigned int y : 2; unsigned int z : 5;
AD> int', but got 1 byte! IMHO, it's wrong: compiler must use a separate
AD> places for
AD> it and corresponding size - this structure may be a mirror of hardware
AD> registers!
There's no error!!! Let's see:
1 bit
+ 2 bits
5 bits
--------
8 bits (8 bits < 1 <= byte)
AD> May be it's a bug of BCOS2 2.0 ?
I don't think so... it isn't wrong!!!
AD> P.S. Sorry for my ugly English :-(.
No need for thah... imagine I put this line in every message I write!
JuaJua!!!
For info about my document server:
send a mail with "InfoMail" in the To: field at any of my Fido-like
ddresses.
InterNet: jkohen@tough.com * FidoNet: 4:900/748.3 * Sk-NetWork: 200:201/201.2
-=[ PGP keyID 3423EAA9 ]=-
... Now I Wanna Sniff Some Glue þ Ramones
--- Terminate 4.00/Pro
4:900/748.3)
---------------
* Origin: The King of The Ring BBS þ +54-1-OFF-LINE þ TLD 0 - 7
|