OSDN Git Service

Remove invalid left shifts of -1.
authorStephen Hines <srhines@google.com>
Tue, 29 Sep 2015 16:28:41 +0000 (09:28 -0700)
committerStephen Hines <srhines@google.com>
Tue, 29 Sep 2015 17:04:54 +0000 (10:04 -0700)
commit23360cc4980213d375718b7c124ecc0a21a1b1b7
treec633c09e1e5e99f9abfd7d68fc4f13b7bb74a744
parent8b279eadd3a635c31df9c570ab2144212bfd07cc
Remove invalid left shifts of -1.

Bug: 24492248

Shifting sign bits left is considered undefined behavior, so we need to
switch these uses to unsigned equivalents. The time_t-related code is
updated relative to upstream sources.

Change-Id: I226e5a929a10f5c57dfcb90c748fdac34eb377c2
libc/bionic/semaphore.cpp
libc/tzcode/private.h