scalapack (1.8.0-9) 28_PBtools.h.patch

Summary

 PBLAS/SRC/PBtools.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

    
download this patch

Patch contents

Index: scalapack-1.8.0/PBLAS/SRC/PBtools.h
===================================================================
--- scalapack-1.8.0.orig/PBLAS/SRC/PBtools.h	2006-01-18 22:36:03.000000000 +0100
+++ scalapack-1.8.0/PBLAS/SRC/PBtools.h	2011-09-18 16:37:42.895311494 +0200
@@ -115,7 +115,7 @@
 *  also less silly errors ...
 */
 #define    Mptr( a_, i_, j_, lda_, siz_ ) \
-              ( (a_) + ( ( (i_)+(j_)*(lda_) )*(siz_) ) )
+           ( (a_) + ( (off_t) ( (off_t)(i_)+(off_t)(j_)*(off_t)(lda_))*(off_t)(siz_) ) )
 /*
 *  Mfirstnb and Mlastnb compute the global size of the first and last
 *  block corresponding to the interval i_:i_+n_-1 of global indexes.