Reviewers: Lex,

Description:
Operations like i += d where i is an int and d is a double are not
properly truncated (narrowed) to the LHS type. This patch forces i += d
to be written as i = i + d, and applies a narrowing cast as needed, e.g.
i = (int)(i + d);



Please review this at http://gwt-code-reviews.appspot.com/102811

Affected files:
   dev/core/src/com/google/gwt/dev/jjs/impl/CompoundAssignmentNormalizer.java
    
dev/core/src/com/google/gwt/dev/jjs/impl/PostOptimizationCompoundAssignmentNormalizer.java


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to