diff options
Diffstat (limited to 'matfile.scm')
| -rw-r--r-- | matfile.scm | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/matfile.scm b/matfile.scm index a7a96a6..49c603b 100644 --- a/matfile.scm +++ b/matfile.scm @@ -122,7 +122,8 @@  					(else (slib:error 'p 'type d-prot)))  				      mrows ncols))  			  ((text)    (make-array "." mrows ncols)) -			  ((sparse)  (slib:error 'sparse '?))))) +			  ((sparse)  (slib:error 'sparse '?)))) +		   (d-endn*leng (* -1 d-endn d-leng)))  	       (do ((idx 0 (+ 1 idx)))  		   ((>= idx namlen))  		 (string-set! namstr idx (read-char port))) @@ -133,7 +134,7 @@  		   ((>= jdx ncols))  		 (do ((idx 0 (+ 1 idx)))  		     ((>= idx mrows)) -		   (array-set! mat (d-conv (read-bytes (* d-endn d-leng) port)) +		   (array-set! mat (d-conv (read-bytes d-endn*leng port))  			       idx jdx)))  	       (if imagf  		   (do ((jdx 0 (+ 1 jdx))) @@ -141,7 +142,7 @@  		     (do ((idx 0 (+ 1 idx)))  			 ((>= idx mrows))  		       (array-set! mat -				   (+ (* (d-conv (read-bytes (* d-endn d-leng) port)) +				   (+ (* (d-conv (read-bytes d-endn*leng port))  					 +i)  				      (array-ref mat idx jdx))  				   idx jdx)))) | 
