Rephrase to avoid integer overflow

Bug: 179046129
Test: atest sf_foundation_test w/local additions
Change-Id: Ie86897fb6283b22745d2fc0cb9b9ea22736193a0
(cherry picked from commit 522b797958daedb6ff6a2b21b1a8e0dd3ec5bf5e)
1 file changed