diff options
Diffstat (limited to 'src/deep.cpp')
-rw-r--r-- | src/deep.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/deep.cpp b/src/deep.cpp index 897dc63..c0aa25b 100644 --- a/src/deep.cpp +++ b/src/deep.cpp | |||
@@ -59,13 +59,13 @@ THE SOFTWARE. | |||
59 | * idfunc -> metatable | 59 | * idfunc -> metatable |
60 | */ | 60 | */ |
61 | // crc64/we of string "DEEP_LOOKUP_KEY" generated at http://www.nitrxgen.net/hashgen/ | 61 | // crc64/we of string "DEEP_LOOKUP_KEY" generated at http://www.nitrxgen.net/hashgen/ |
62 | static DECLARE_CONST_UNIQUE_KEY( DEEP_LOOKUP_KEY, 0x9fb9b4f3f633d83d); | 62 | static constexpr UniqueKey DEEP_LOOKUP_KEY{ 0x9fb9b4f3f633d83dull }; |
63 | 63 | ||
64 | /* | 64 | /* |
65 | * The deep proxy cache is a weak valued table listing all deep UD proxies indexed by the deep UD that they are proxying | 65 | * The deep proxy cache is a weak valued table listing all deep UD proxies indexed by the deep UD that they are proxying |
66 | * crc64/we of string "DEEP_PROXY_CACHE_KEY" generated at http://www.nitrxgen.net/hashgen/ | 66 | * crc64/we of string "DEEP_PROXY_CACHE_KEY" generated at http://www.nitrxgen.net/hashgen/ |
67 | */ | 67 | */ |
68 | static DECLARE_CONST_UNIQUE_KEY( DEEP_PROXY_CACHE_KEY, 0x05773d6fc26be106); | 68 | static constexpr UniqueKey DEEP_PROXY_CACHE_KEY{ 0x05773d6fc26be106ull }; |
69 | 69 | ||
70 | /* | 70 | /* |
71 | * Sets up [-1]<->[-2] two-way lookups, and ensures the lookup table exists. | 71 | * Sets up [-1]<->[-2] two-way lookups, and ensures the lookup table exists. |
@@ -390,7 +390,7 @@ int luaG_newdeepuserdata( lua_State* L, luaG_IdFunction idfunc, int nuv_) | |||
390 | { | 390 | { |
391 | return luaL_error( L, "idfunc(eDO_new) failed to create deep userdata (out of memory)"); | 391 | return luaL_error( L, "idfunc(eDO_new) failed to create deep userdata (out of memory)"); |
392 | } | 392 | } |
393 | if( prelude->magic.value != DEEP_VERSION.value) | 393 | if( prelude->magic != DEEP_VERSION) |
394 | { | 394 | { |
395 | // just in case, don't leak the newly allocated deep userdata object | 395 | // just in case, don't leak the newly allocated deep userdata object |
396 | lua_pushlightuserdata( L, prelude); | 396 | lua_pushlightuserdata( L, prelude); |