]> git.ipfire.org Git - thirdparty/elfutils.git/commit
Avoid signed/unsigned comparison
authorUlf Hermann <ulf.hermann@qt.io>
Thu, 20 Apr 2017 14:40:30 +0000 (16:40 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 27 Apr 2017 18:19:54 +0000 (20:19 +0200)
commitd6655d9995e3fa9a2318261ec3ef5fc54996f69c
tree9ae1dac6f6fb6fe2479d944b47493b1dff84d026
parentefd60bee71b9613a97bf60fa4f8d4407f8460ccb
Avoid signed/unsigned comparison

Some compilers implicitly cast the result of uint_fast16_t *
uint_fast16_t to something signed and then complain about the
comparison to (unsigned) size_t.

Casting phnum to size_t is a good idea anyway as 16bit multiplication
can easily overflow and we are not checking for this.

Signed-off-by: Ulf Hermann <ulf.hermann@qt.io>
libdwfl/ChangeLog
libdwfl/elf-from-memory.c