commit | 6ffa15e7e6dc5e792d37b20e0acefae3bcded064 | [log] [tgz] |
---|---|---|
author | cromwellian@google.com <cromwellian@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Mon Mar 28 16:42:49 2011 +0000 |
committer | cromwellian@google.com <cromwellian@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Mon Mar 28 16:42:49 2011 +0000 |
tree | af8edbb966bf7ca951b9cbdd451660ce3e60a71e | |
parent | 0be5b49e852ee4e9bb7a46e05d12de67a4012c84 [diff] |
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); Updated to fix String concat issue: Review at http://gwt-code-reviews.appspot.com/1385803 Review by: scottb@google.com git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@9903 8db76d5a-ed1c-0410-87a9-c151d255dfc7