| Index: src/utils.h
|
| diff --git a/src/utils.h b/src/utils.h
|
| index 049a25b334ed1f24fbc8e73ffd20bdd26fe832e1..cc181990928b944f9217b5d5d1682fbcc3a23a3f 100644
|
| --- a/src/utils.h
|
| +++ b/src/utils.h
|
| @@ -54,7 +54,7 @@ static inline int ArithmeticShiftRight(int x, int s) {
|
| // This allows conversion of Addresses and integral types into
|
| // 0-relative int offsets.
|
| template <typename T>
|
| -static inline int OffsetFrom(T x) {
|
| +static inline intptr_t OffsetFrom(T x) {
|
| return x - static_cast<T>(0);
|
| }
|
|
|
| @@ -63,7 +63,7 @@ static inline int OffsetFrom(T x) {
|
| // This allows conversion of 0-relative int offsets into Addresses and
|
| // integral types.
|
| template <typename T>
|
| -static inline T AddressFrom(int x) {
|
| +static inline T AddressFrom(intptr_t x) {
|
| return static_cast<T>(0) + x;
|
| }
|
|
|
|
|