Unreviewed, fix build failure on watchOS simulator
authorysuzuki@apple.com <ysuzuki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Feb 2020 18:35:02 +0000 (18:35 +0000)
committerysuzuki@apple.com <ysuzuki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 10 Feb 2020 18:35:02 +0000 (18:35 +0000)
https://bugs.webkit.org/show_bug.cgi?id=207183

* wtf/HashTable.h:
(WTF::HashTableCapacityForSize::capacityForSize):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256194 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WTF/ChangeLog
Source/WTF/wtf/HashTable.h

index 4832962..c2722d5 100644 (file)
@@ -1,3 +1,11 @@
+2020-02-10  Yusuke Suzuki  <ysuzuki@apple.com>
+
+        Unreviewed, fix build failure on watchOS simulator
+        https://bugs.webkit.org/show_bug.cgi?id=207183
+
+        * wtf/HashTable.h:
+        (WTF::HashTableCapacityForSize::capacityForSize):
+
 2020-02-10  Daniel Bates  <dabates@apple.com>
 
         Disallow setting base URL to a data or JavaScript URL
index d3ab119..eeed509 100644 (file)
@@ -323,7 +323,7 @@ DECLARE_ALLOCATOR_WITH_HEAP_IDENTIFIER(HashTable);
             return keyAndDeleteCount * largeMaxLoadDenominator >= tableSize * largeMaxLoadNumerator;
         }
 
-        static constexpr unsigned capacityForSize(uint64_t sizeArg)
+        static constexpr unsigned capacityForSize(uint32_t sizeArg)
         {
             if (!sizeArg)
                 return 0;