Skip to content
Snippets Groups Projects
Commit d97278dc authored by Kurt A. O'Hearn's avatar Kurt A. O'Hearn
Browse files

sPuReMD: fix pointer type warning.

parent 67b2c00d
No related branches found
No related tags found
No related merge requests found
......@@ -83,11 +83,11 @@ int Allocate_Matrix( sparse_matrix **pH, int n, int m )
H = *pH;
H->n = n;
H->m = m;
if ( (H->start = (int*) malloc(sizeof(int) * (n + 1))) == NULL )
if ( (H->start = (unsigned int*) malloc(sizeof(int) * (n + 1))) == NULL )
{
return 0;
}
if ( (H->j = (int*) malloc(sizeof(int) * m)) == NULL
if ( (H->j = (unsigned int*) malloc(sizeof(int) * m)) == NULL
|| (H->val = (real*) malloc(sizeof(real) * m)) == NULL )
{
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment