Mercurial > hg > early-roguelike
diff urogue/memory.c @ 257:c4b12d2d1dcd
UltraRogue: fix various build failures.
author | John "Elwin" Edwards |
---|---|
date | Tue, 31 Jan 2017 20:33:49 -0500 |
parents | c495a4f288c6 |
children | b8919055c2fc |
line wrap: on
line diff
--- a/urogue/memory.c Tue Jan 31 19:56:04 2017 -0500 +++ b/urogue/memory.c Tue Jan 31 20:33:49 2017 -0500 @@ -339,7 +339,7 @@ /* check a pointer to be sure all check bytes are OK. abort if not */ /* always returns 1 if not aborting so that it can be included in */ /* if statement boolean expressions */ -int mem_validate(void *ptr) +int mem_validate(const void *ptr) { unsigned char *mem_temp = (unsigned char *)ptr; size_t mem_size;