From 2e8d026b1337f383bd2f1dcb8d7aadb431ed727b Mon Sep 17 00:00:00 2001
From: Mathieu Faverge <mathieu.faverge@inria.fr>
Date: Fri, 16 Dec 2016 10:32:47 +0100
Subject: [PATCH] Cast to avoid warnigns onmac

---
 spm.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/spm.h b/spm.h
index 46d8c27b..e97b6913 100644
--- a/spm.h
+++ b/spm.h
@@ -118,16 +118,16 @@ void          spmIntSort2Asc2(void * const pbase, const pastix_int_t n);
  * Subroutines to print elements of spm structures
  */
 static inline void z_spmPrintElt( FILE *f, pastix_int_t i, pastix_int_t j, pastix_complex64_t A ){
-    fprintf( f, "%ld %ld %e %e\n", i, j, creal(A), cimag(A) );
+    fprintf( f, "%ld %ld %e %e\n", (long)i, (long)j, creal(A), cimag(A) );
 }
 static inline void c_spmPrintElt( FILE *f, pastix_int_t i, pastix_int_t j, pastix_complex32_t A ){
-    fprintf( f, "%ld %ld %e %e\n", i, j, crealf(A), cimagf(A) );
+    fprintf( f, "%ld %ld %e %e\n", (long)i, (long)j, crealf(A), cimagf(A) );
 }
 static inline void d_spmPrintElt( FILE *f, pastix_int_t i, pastix_int_t j, double A ){
-    fprintf( f, "%ld %ld %e\n", i, j, A );
+    fprintf( f, "%ld %ld %e\n", (long)i, (long)j, A );
 }
 static inline void s_spmPrintElt( FILE *f, pastix_int_t i, pastix_int_t j, float A ){
-    fprintf( f, "%ld %ld %e\n", i, j, A );
+    fprintf( f, "%ld %ld %e\n", (long)i, (long)j, A );
 }
 
 /**
-- 
GitLab