Mercurial > hg > octave-lyh
changeset 5929:e6c29de3be38
[project @ 2006-08-14 20:07:37 by jwe]
author | jwe |
---|---|
date | Mon, 14 Aug 2006 20:07:37 +0000 |
parents | e86311bdecc9 |
children | a703198cb8b8 |
files | src/ChangeLog src/variables.cc |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2006-08-14 John W. Eaton <jwe@octave.org> + * variables.cc (symbol_record_name_compare): Fix casts. + * ov-cell.cc (octave_cell::subsasgn): Call empty_conv for 0x0 objects, not just empty objects.
--- a/src/variables.cc +++ b/src/variables.cc @@ -1527,8 +1527,8 @@ static int symbol_record_name_compare (const void *a_arg, const void *b_arg) { - const symbol_record *a = static_cast<const symbol_record *> (a_arg); - const symbol_record *b = static_cast<const symbol_record *> (b_arg); + const symbol_record *a = *(static_cast<symbol_record *const*> (a_arg)); + const symbol_record *b = *(static_cast<symbol_record *const*> (b_arg)); std::string a_nm = a->name (); std::string b_nm = b->name ();