Fixes for C++ compilation proposed by Steffan Webb.

This commit is contained in:
davi
2006-07-25 15:30:46 +00:00
parent 2753738103
commit 038f836d0d
10 changed files with 17 additions and 18 deletions

View File

@@ -109,7 +109,7 @@ cmph_t *chm_new(cmph_config_t *mph, float c)
visited = (cmph_uint8 *)malloc(chm->n/8 + 1);
memset(visited, 0, chm->n/8 + 1);
free(chm->g);
chm->g = malloc(chm->n * sizeof(cmph_uint32));
chm->g = (cmph_uint32 *)malloc(chm->n * sizeof(cmph_uint32));
assert(chm->g);
for (i = 0; i < chm->n; ++i)
{