the sizes are already validated by CheckSizeForOverflow(), add casts to size_t to avoid -Wshorten-64-to-32 Change-Id: Ida9102c2104f4a334a0ad16d6e01a12bedfd4eec