[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug fix for binary saving
From: |
John W. Eaton |
Subject: |
Bug fix for binary saving |
Date: |
Thu, 11 Jan 2007 02:31:30 -0500 |
On 18-Dec-2006, Michael Goffioul wrote:
| Using a signed char to load an octave binary file leads to a wrong detection
| of the type flag: -1 instead of 255. The attached patch solves the problem.
|
| Michael.
|
| Index: src/ls-oct-binary.cc
| ===================================================================
| RCS file: /cvs/octave/src/ls-oct-binary.cc,v
| retrieving revision 1.10
| diff -c -r1.10 ls-oct-binary.cc
| *** src/ls-oct-binary.cc 23 May 2006 06:05:14 -0000 1.10
| --- src/ls-oct-binary.cc 18 Dec 2006 13:24:16 -0000
| ***************
| *** 139,145 ****
| {
| std::string retval;
|
| ! char tmp = 0;
|
| int32_t name_len = 0;
| int32_t doc_len = 0;
| --- 139,145 ----
| {
| std::string retval;
|
| ! unsigned char tmp = 0;
|
| int32_t name_len = 0;
| int32_t doc_len = 0;
I made this change.
Thanks,
jwe
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bug fix for binary saving,
John W. Eaton <=