comparison src/ls-mat5.cc @ 5322:22994a5730f9

[project @ 2005-04-29 13:04:24 by dbateman]
author dbateman
date Fri, 29 Apr 2005 13:04:25 +0000
parents 4c8a2e4e0717
children 6ba182a85dea
comparison
equal deleted inserted replaced
5321:84b72a402b86 5322:22994a5730f9
439 OCTAVE_LOCAL_BUFFER (unsigned int, tmp, 2); 439 OCTAVE_LOCAL_BUFFER (unsigned int, tmp, 2);
440 if (uncompress (X_CAST (Bytef *, tmp), &destLen, 440 if (uncompress (X_CAST (Bytef *, tmp), &destLen,
441 X_CAST (Bytef *, inbuf), element_length) != Z_MEM_ERROR) 441 X_CAST (Bytef *, inbuf), element_length) != Z_MEM_ERROR)
442 { 442 {
443 // Why should I have to initialize outbuf as I'll just overwrite!! 443 // Why should I have to initialize outbuf as I'll just overwrite!!
444 if (swap)
445 swap_bytes<4> (tmp, 2);
446
444 destLen = tmp[1] + 8; 447 destLen = tmp[1] + 8;
445 std::string outbuf (destLen, ' '); 448 std::string outbuf (destLen, ' ');
446 449
447 int err = uncompress (X_CAST (Bytef *, outbuf.c_str ()), &destLen, 450 int err = uncompress (X_CAST (Bytef *, outbuf.c_str ()), &destLen,
448 X_CAST ( Bytef *, inbuf), element_length); 451 X_CAST ( Bytef *, inbuf), element_length);