[binutils-gdb] Return bool from array_type_has_dynamic_stride
Tom Tromey via Gdb-cvs <[email protected]>
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=71f898443500ba572511579cf699994828542c96 commit 71f898443500ba572511579cf699994828542c96 Author: Tom Tromey <[email protected]> Date: Wed Mar 11 08:43:30 2026 -0600 Return bool from array_type_has_dynamic_stride This changes array_type_has_dynamic_stride to return bool. I'm checking this in as obvious. Diff: --- gdb/gdbtypes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index f3422fe5609..67692250234 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -1899,10 +1899,10 @@ stub_noname_complaint (void) complaint (_("stub type has NULL name")); } -/* Return nonzero if TYPE has a DYN_PROP_BYTE_STRIDE dynamic property +/* Return true if TYPE has a DYN_PROP_BYTE_STRIDE dynamic property attached to it, and that property has a non-constant value. */ -static int +static bool array_type_has_dynamic_stride (struct type *type) { struct dynamic_prop *prop = type->dyn_prop (DYN_PROP_BYTE_STRIDE);