From: Hwankyu Jhun Date: Tue, 17 Aug 2021 02:04:25 +0000 (+0900) Subject: Use INT_MAX instead of custom variable X-Git-Tag: accepted/tizen/unified/20210818.124538~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f61ad32b21308885a2eb6411b4cf69f7e6c464ea;p=platform%2Fcore%2Fappfw%2Frpc-port.git Use INT_MAX instead of custom variable Change-Id: I9ec72a5c9591ffbfc91b9f6203fc1bf70eeb4087 Signed-off-by: Hwankyu Jhun --- diff --git a/src/parcel-header-internal.cc b/src/parcel-header-internal.cc index c1d51fb..12cf541 100644 --- a/src/parcel-header-internal.cc +++ b/src/parcel-header-internal.cc @@ -15,6 +15,7 @@ */ #include +#include #include "parcel-header-internal.hh" @@ -51,9 +52,8 @@ struct timespec ParcelHeader::GetTimeStamp() const { int ParcelHeader::GenerateSeqNum() { static std::atomic num { 0 }; - constexpr int limit = 0x3fffffff; ++num; - return num &= limit; + return num &= INT_MAX; } } // namespace internal