diff options
Diffstat (limited to 'gdb/valarith.c')
-rw-r--r-- | gdb/valarith.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/valarith.c b/gdb/valarith.c index 807cdd5..875f547 100644 --- a/gdb/valarith.c +++ b/gdb/valarith.c @@ -502,8 +502,8 @@ value_x_binop (struct value *arg1, struct value *arg2, enum exp_opcode op, = TYPE_TARGET_TYPE (check_typedef (value_type (argvec[0]))); return value_zero (return_type, VALUE_LVAL (arg1)); } - return call_function_by_hand (argvec[0], NULL, 2 - static_memfuncp, - argvec + 1); + return call_function_by_hand (argvec[0], NULL, + {argvec + 1, 2u - static_memfuncp}); } throw_error (NOT_FOUND_ERROR, _("member function %s not found"), tstr); @@ -618,7 +618,8 @@ value_x_unop (struct value *arg1, enum exp_opcode op, enum noside noside) = TYPE_TARGET_TYPE (check_typedef (value_type (argvec[0]))); return value_zero (return_type, VALUE_LVAL (arg1)); } - return call_function_by_hand (argvec[0], NULL, nargs, argvec + 1); + return call_function_by_hand (argvec[0], NULL, + gdb::make_array_view (argvec + 1, nargs)); } throw_error (NOT_FOUND_ERROR, _("member function %s not found"), tstr); |