From d97278dc5270f645dd1cc85a544ac52105c34d8c Mon Sep 17 00:00:00 2001
From: "Kurt A. O'Hearn" <ohearnku@msu.edu>
Date: Thu, 1 Sep 2016 20:42:17 -0700
Subject: [PATCH] sPuReMD: fix pointer type warning.

---
 sPuReMD/src/allocate.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sPuReMD/src/allocate.c b/sPuReMD/src/allocate.c
index b4b6f90f..509eccee 100644
--- a/sPuReMD/src/allocate.c
+++ b/sPuReMD/src/allocate.c
@@ -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;
-- 
GitLab