Mercurial > hg > early-roguelike
comparison 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 |
comparison
equal
deleted
inserted
replaced
256:c495a4f288c6 | 257:c4b12d2d1dcd |
---|---|
337 } | 337 } |
338 | 338 |
339 /* check a pointer to be sure all check bytes are OK. abort if not */ | 339 /* check a pointer to be sure all check bytes are OK. abort if not */ |
340 /* always returns 1 if not aborting so that it can be included in */ | 340 /* always returns 1 if not aborting so that it can be included in */ |
341 /* if statement boolean expressions */ | 341 /* if statement boolean expressions */ |
342 int mem_validate(void *ptr) | 342 int mem_validate(const void *ptr) |
343 { | 343 { |
344 unsigned char *mem_temp = (unsigned char *)ptr; | 344 unsigned char *mem_temp = (unsigned char *)ptr; |
345 size_t mem_size; | 345 size_t mem_size; |
346 size_t i; | 346 size_t i; |
347 | 347 |