[Bug c/44407] int = int / unsigned int yields unexpected result

2010-06-03 Thread okingsmith at nuvation dot com
--- Comment #2 from okingsmith at nuvation dot com 2010-06-03 21:38 --- I am confused why the compiler is not issuing a warning on the second division. Ir is sign converting the numerator to match the denominator (which makes sense at a certain level), and hence can produce unexpected

[Bug c/44407] New: int = int / unsigned int yields unexpected result

2010-06-03 Thread okingsmith at nuvation dot com
signed int yields unexpected result Product: gcc Version: 4.2.1 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: okingsmith at nuvation dot