diff src/ov-re-sparse.cc @ 5275:23b37da9fd5b

[project @ 2005-04-08 16:07:35 by jwe]
author jwe
date Fri, 08 Apr 2005 16:07:37 +0000
parents 57077d0ddc8e
children 5bdc3f24cd5f
line wrap: on
line diff
--- a/src/ov-re-sparse.cc	Thu Apr 07 21:51:37 2005 +0000
+++ b/src/ov-re-sparse.cc	Fri Apr 08 16:07:37 2005 +0000
@@ -266,7 +266,9 @@
       swap_bytes<4> (&nz);
     }
 
-  SparseMatrix m (nr, nc, nz);
+  SparseMatrix m (static_cast<octave_idx_type> (nr),
+		  static_cast<octave_idx_type> (nc),
+		  static_cast<octave_idx_type> (nz));
 
   for (int i = 0; i < nc+1; i++) 
     {
@@ -580,7 +582,9 @@
 
   H5Dclose (data_hid);
 
-  SparseMatrix m (nr, nc, nz);
+  SparseMatrix m (static_cast<octave_idx_type> (nr),
+		  static_cast<octave_idx_type> (nc),
+		  static_cast<octave_idx_type> (nz));
 
   data_hid = H5Dopen (group_hid, "cidx");
   space_hid = H5Dget_space (data_hid);