| commit | a5657249503984dba3616418262f48608d4e96b2 | [log] [tgz] |
|---|---|---|
| author | spoon@google.com <spoon@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Wed Nov 18 17:31:51 2009 +0000 |
| committer | spoon@google.com <spoon@google.com@8db76d5a-ed1c-0410-87a9-c151d255dfc7> | Wed Nov 18 17:31:51 2009 +0000 |
| tree | c8bd4898ee8ae39b3f5571696370043554a706fb | |
| parent | 7db9821504a446942a74c83566f4994a98534285 [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); Patch by: cromwellian Review by: spoon git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@6991 8db76d5a-ed1c-0410-87a9-c151d255dfc7