Fixing data types along with the bug with a negative offset.
Fixing data types along with the bug with a negative offset.

Change-Id: Iacb0589b165c0943cae6eae7eb9dedfa691fbd34

google/safeside,google/safeside,google/safeside,google/safeside