Add extra (size_t) cast to avoid compiler warning. am: 3b126928a1
am: b2d1df316a

Change-Id: I776608242dce1082afeb2df1cadf9ed46d4138b1