From: <no...@so...> - 2001-07-21 03:27:24
|
Bugs item #443258, was opened at 2001-07-20 20:27 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=100599&aid=443258&group_id=599 Category: C-Front End Group: None Status: Open Resolution: None Priority: 5 Submitted By: Michael Hope (michaelh) Assigned to: Nobody/Anonymous (nobody) Summary: AND causes promotion from int to long Initial Comment: In this code (part of support/regression/bug-408972.c): int leftShiftIntMasked (int v) { return ((v & 0xff00U) << 3); } the expression (v & 0xff00U) is promoted from int to long. michaelh isn't sure, but I think with the U both should be ints and shouldn't be promoted. ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=100599&aid=443258&group_id=599 |
From: Johan K. <joh...@id...> - 2001-07-25 18:14:55
|
> the expression (v & 0xff00U) is promoted from int to > long. michaelh isn't sure, but I think with the U > both should be ints and shouldn't be promoted. johanknol thinks michaelh is right :). Fixed in SDCCval.c:constVal() johan |