roken: strtoll.c negation is a no-op on unsigned integer
commitb10ad7eb5795f116e6ad623d0a73d57491d0f271
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 22 Jan 2019 03:25:19 +0000 (21 22:25 -0500)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 22 Jan 2019 03:25:19 +0000 (21 22:25 -0500)
treeb37da1e58901b704fa906266f0f35b1955962e3a
parent3bbd8663b068d0afb5d920517cddd6938f0dc548
roken: strtoll.c negation is a no-op on unsigned integer

strtoll() returns a signed long long not an unsigned long long.
When applying the negation for negatives the value must be cast
from unsigned to signed and then stored in a signed variable
before returning it.

Change-Id: If568afd2509d27c7bf206ca59d32ca150cb34857
lib/roken/strtoll.c