Add missing const.

No idea why this only raised an error with cl.exe, it was wrong on all
platforms.
This commit is contained in:
David Chisnall
2019-04-10 13:13:09 +01:00
parent 6f19d4e1e7
commit c673926d15

View File

@@ -316,7 +316,7 @@ namespace snmalloc
* This intended to allow code that depends on the pagemap having a
* specific representation to fail gracefully.
*/
static FlatPagemap* cast_to_pagemap(void* pm, PagemapConfig* c)
static FlatPagemap* cast_to_pagemap(void* pm, const PagemapConfig* c)
{
if (
(c->version != 1) || (!c->is_flat_pagemap) ||