From 0826d16bb14b477fa619a4a30f4d8c000f381ff4 Mon Sep 17 00:00:00 2001 From: Michael Callahan Date: Wed, 24 Aug 2016 13:48:02 -0700 Subject: [PATCH] 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 --- folly/FBString.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1