int x = 1 + (0 >> 9);
produces the error message
warning 116: right shifting more than size of object changed to zero
In the real case the 0 is a macro that is sometimes zero and sometimes not. Casting 0 to uint16_t works around the bug
SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8 3.5.0 #9253 (Jul 4 2015) (Linux)
Fixed in reversion #9337.
Log in to post a comment.
SDCC : mcs51/z80/z180/r2k/r3ka/gbz80/tlcs90/ds390/pic16/pic14/TININative/ds400/hc08/s08/stm8 3.5.0 #9253 (Jul 4 2015) (Linux)
Fixed in reversion #9337.