]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
gdb: Use std::abs instead of abs on LONGEST types
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 27 Feb 2020 16:42:17 +0000 (16:42 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 27 Feb 2020 16:45:34 +0000 (16:45 +0000)
commit3104d9ee223133b9f5be4ec96b3f986e4fbc893e
treeb594823bfbc8c77dfe345d5455fa3b9dd03e3cb2
parent736990c44277615e47d5dfab523c70488911624d
gdb: Use std::abs instead of abs on LONGEST types

Use std::abs so that we get the C++ overloaded version that matches
the argument type instead of the C abs function which is only for int
arguments.

There should be no user visible change after this commit.

gdb/ChangeLog:

* gdbtypes.c (create_array_type_with_stride): Use std::abs not
abs.
gdb/ChangeLog
gdb/gdbtypes.c