mb-gcc bug ?

Looks like mb-gcc doesn't handle overflows correctly:

Xuint32 mask, bits; mask = 0xffffffff

Reply to
Rudolf Usselmann
Loading thread data ...

Hi Rudi,

I'm afriad your expectations are wrong. This is undefined in C. For example, if you try:

int d; d = width of type

Cheers, JonB

Reply to
Jon Beniston

Hi Rudi,

I'm afriad your expectations are wrong. This is undefined in C. For example, if you try:

int d; d = width of type

Cheers, JonB

Reply to
Jon Beniston

Dear Mr Usselman,

the behaviour you describe is expected behaviour as of following considerations:

if you compile something like

var = var1

Reply to
avrbasic

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.