Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 2148bc66047dcb77b2529da689d5139f87312f2c Mon Sep 17 00:00:00 2001
- From: Tim Lunn <tim@feathertop.org>
- Date: Sat, 26 Jan 2013 09:20:42 +1100
- Subject: [PATCH] add missing UINT32_MAX define
- ---
- js/public/HashTable.h | 6 ++++--
- 1 file changed, 4 insertions(+), 2 deletions(-)
- diff --git a/js/public/HashTable.h b/js/public/HashTable.h
- index 0e8d9bf..3982926 100644
- --- a/js/public/HashTable.h
- +++ b/js/public/HashTable.h
- @@ -11,6 +11,8 @@
- #include "TemplateLib.h"
- #include "Utility.h"
- +#define JS_UINT32_MAX 4294967295U
- +
- namespace js {
- class TempAllocPolicy;
- @@ -290,8 +292,8 @@ class HashTable : private AllocPolicy
- {
- /* Rely on compiler "constant overflow warnings". */
- JS_STATIC_ASSERT(((sMaxInit * sInvMaxAlpha) >> 7) < sMaxCapacity);
- - JS_STATIC_ASSERT((sMaxCapacity * sInvMaxAlpha) <= UINT32_MAX);
- - JS_STATIC_ASSERT((sMaxCapacity * sizeof(Entry)) <= UINT32_MAX);
- + JS_STATIC_ASSERT((sMaxCapacity * sInvMaxAlpha) <= JS_UINT32_MAX);
- + JS_STATIC_ASSERT((sMaxCapacity * sizeof(Entry)) <= JS_UINT32_MAX);
- }
- static bool isLiveHash(HashNumber hash)
- --
- 1.8.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement