OSDN Git Service

ART: Fix casts in atomic.h to please GCC
authorAndreas Gampe <agampe@google.com>
Sat, 7 Jun 2014 04:27:01 +0000 (21:27 -0700)
committerAndreas Gampe <agampe@google.com>
Sat, 7 Jun 2014 04:27:01 +0000 (21:27 -0700)
commita55c697a8276b1c82b108a695bbd588725aa015e
treeb636e82692421bc57b163a86ab8c103b03ada40a
parentcef85adb4933bbd00ca122aa7357e02c716df326
ART: Fix casts in atomic.h to please GCC

GCC 4.9 for ARM64 is not happy about reinterpret_cast-ing between
int64_t and uint64_t, which is according to spec. Change the
concrete casts to static_cast.

However, we also use this for pointers, and we cannot static_cast
those to int64_t. So add a reinterpret_cast to uintptr_t.

Change-Id: If6513fbcbb8ee8f610f172310af61cf2e9ab0c43
runtime/atomic.h