In article <CA180F4D0C023044AA10FB1BDCAC4D1F0704961B@EX01.evidente.local>, Daniel Marjamäki <daniel.marjam...@evidente.se> writes:
> > You can get overflow with / and %. Consider: > > > > int i = INT_MIN / -1; // similar for % > > you are right, I did not think of that. > > imho overflow still seems unlikely for / and %. I thought the whole point was to flag instances where the presence of a cast indicated a suspicion of intent that wasn't being satisfied? In other words, overflow may be unlikely but doesn't the presence of the cast indicate the same suspicious intent? -- "The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline> The Computer Graphics Museum <http://ComputerGraphicsMuseum.org> The Terminals Wiki <http://terminals.classiccmp.org> Legalize Adulthood! (my blog) <http://LegalizeAdulthood.wordpress.com>
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits