Fix inverted logic in the type check.

This commit is contained in:
David Chisnall
2019-04-11 17:26:04 +01:00
parent 5c1abffdda
commit 7f057f308f

View File

@@ -220,7 +220,7 @@ namespace snmalloc
{
if (
(c->version != 1) || (c->is_flat_pagemap) ||
(c->sizeof_pointer == sizeof(void*)) ||
(c->sizeof_pointer != sizeof(void*)) ||
(c->pagemap_bits != GRANULARITY_BITS) ||
(c->size_of_entry != sizeof(T)) || (!std::is_integral_v<T>))
{
@@ -325,7 +325,7 @@ namespace snmalloc
{
if (
(c->version != 1) || (!c->is_flat_pagemap) ||
(c->sizeof_pointer == sizeof(void*)) ||
(c->sizeof_pointer != sizeof(void*)) ||
(c->pagemap_bits != GRANULARITY_BITS) ||
(c->size_of_entry != sizeof(T)) || (!std::is_integral_v<T>))
{