fix possible overflow in effect wrappers. am: 9e29523b95 am: baebc739b0 am: 3a9d4f4a83 am: 5b7c20dd1e am: df81fc3f3c am: 68e43cf141 am: b1338d3cfc am: 440c9e9b72 am: 9950df2504 am: de98d9b7c1
am: 0837e00683

* commit '0837e00683ccc8b2e30f6a2faf4a07142b63ffb3':
  fix possible overflow in effect wrappers.