Mercurial > octave
changeset 23451:e4fca7cc471c
use false instead of -1 for bool "failure" value
* ov-typeinfo.cc (octave_value_typeinfo::register_assign_op,
octave_value_typeinfo::register_assignany_op): Return false instead of
-1 to indicate failure.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 28 Apr 2017 11:53:54 -0400 |
parents | 855122b993da |
children | 0af6dbede266 |
files | libinterp/octave-value/ov-typeinfo.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-typeinfo.cc Thu Apr 27 17:33:10 2017 -0700 +++ b/libinterp/octave-value/ov-typeinfo.cc Fri Apr 28 11:53:54 2017 -0400 @@ -139,7 +139,7 @@ octave_value_typeinfo::assign_op_fcn f) { return (instance_ok ()) - ? instance->do_register_assign_op (op, t_lhs, t_rhs, f) : -1; + ? instance->do_register_assign_op (op, t_lhs, t_rhs, f) : false; } bool @@ -147,7 +147,7 @@ int t_lhs, octave_value_typeinfo::assignany_op_fcn f) { return (instance_ok ()) - ? instance->do_register_assignany_op (op, t_lhs, f) : -1; + ? instance->do_register_assignany_op (op, t_lhs, f) : false; } bool