diff options
Diffstat (limited to 'libs/binder/Parcel.cpp')
-rw-r--r-- | libs/binder/Parcel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp index 3a7a7a9c3f..2a75619056 100644 --- a/libs/binder/Parcel.cpp +++ b/libs/binder/Parcel.cpp @@ -67,7 +67,7 @@ #define PAD_SIZE_UNSAFE(s) (((s)+3)&~3) static size_t pad_size(size_t s) { - if (s > (SIZE_T_MAX - 3)) { + if (s > (std::numeric_limits<size_t>::max() - 3)) { abort(); } return PAD_SIZE_UNSAFE(s); |