mb-gcc bug ?

Dec 24, 2004 3 Replies

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



Xuint32 mask, bits; mask = 0xffffffff


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

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

Dear Mr Usselman,

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

if you compile something like

var = var1

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required