comparison src/ov-bool-sparse.cc @ 5828:22e23bee74c8

[project @ 2006-05-23 06:05:14 by jwe]
author jwe
date Tue, 23 May 2006 06:05:14 +0000
parents faafc2d98b8d
children c20eb7330d13
comparison
equal deleted inserted replaced
5827:1fe78adb91bc 5828:22e23bee74c8
202 202
203 int nr = d(0); 203 int nr = d(0);
204 int nc = d(1); 204 int nc = d(1);
205 int nz = nzmax (); 205 int nz = nzmax ();
206 206
207 FOUR_BYTE_INT itmp; 207 int32_t itmp;
208 // Use negative value for ndims to be consistent with other formats 208 // Use negative value for ndims to be consistent with other formats
209 itmp= -2; 209 itmp= -2;
210 os.write (reinterpret_cast<char *> (&itmp), 4); 210 os.write (reinterpret_cast<char *> (&itmp), 4);
211 211
212 itmp= nr; 212 itmp= nr;
246 246
247 bool 247 bool
248 octave_sparse_bool_matrix::load_binary (std::istream& is, bool swap, 248 octave_sparse_bool_matrix::load_binary (std::istream& is, bool swap,
249 oct_mach_info::float_format /* fmt */) 249 oct_mach_info::float_format /* fmt */)
250 { 250 {
251 FOUR_BYTE_INT nz, nc, nr, tmp; 251 int32_t nz, nc, nr, tmp;
252 if (! is.read (reinterpret_cast<char *> (&tmp), 4)) 252 if (! is.read (reinterpret_cast<char *> (&tmp), 4))
253 return false; 253 return false;
254 254
255 if (swap) 255 if (swap)
256 swap_bytes<4> (&tmp); 256 swap_bytes<4> (&tmp);