From: Michael Callahan Date: Wed, 24 Aug 2016 20:48:02 +0000 (-0700) Subject: Explicit typecast of unused constant to make 32 bit compiler happy. X-Git-Tag: v2016.08.29.00~17 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=commitdiff_plain;h=0826d16bb14b477fa619a4a30f4d8c000f381ff4 Explicit typecast of unused constant to make 32 bit compiler happy. Summary: GCC 5.3 is confused that we might be trying to assign a 64 bit value to a 32 bit size_t although we are clearly not. Just typecast the confusion away. Reviewed By: yfeldblum Differential Revision: D3762839 fbshipit-source-id: 1b705c4e70b782fdb106844fee52ab25aa038acd --- diff --git a/folly/FBString.h b/folly/FBString.h index d8e86a47..bc5790ae 100644 --- a/folly/FBString.h +++ b/folly/FBString.h @@ -812,7 +812,7 @@ private: maxMediumSize = 254 / sizeof(Char), // coincides with the small // bin size in dlmalloc categoryExtractMask = kIsLittleEndian - ? sizeof(size_t) == 4 ? 0xC0000000 : 0xC000000000000000 + ? sizeof(size_t) == 4 ? 0xC0000000 : size_t(0xC000000000000000) : 0x3, capacityExtractMask = kIsLittleEndian ? ~categoryExtractMask