diff options
Diffstat (limited to 'src/unexelf.c')
| -rw-r--r-- | src/unexelf.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/unexelf.c b/src/unexelf.c index a9a8f2d6ce9..4b109470066 100644 --- a/src/unexelf.c +++ b/src/unexelf.c | |||
| @@ -181,10 +181,9 @@ typedef struct { | |||
| 181 | /* The code often converts ElfW (Half) values like e_shentsize to ptrdiff_t; | 181 | /* The code often converts ElfW (Half) values like e_shentsize to ptrdiff_t; |
| 182 | check that this doesn't lose information. */ | 182 | check that this doesn't lose information. */ |
| 183 | #include <intprops.h> | 183 | #include <intprops.h> |
| 184 | #include <verify.h> | 184 | static_assert ((! TYPE_SIGNED (ElfW (Half)) |
| 185 | verify ((! TYPE_SIGNED (ElfW (Half)) | 185 | || PTRDIFF_MIN <= TYPE_MINIMUM (ElfW (Half))) |
| 186 | || PTRDIFF_MIN <= TYPE_MINIMUM (ElfW (Half))) | 186 | && TYPE_MAXIMUM (ElfW (Half)) <= PTRDIFF_MAX); |
| 187 | && TYPE_MAXIMUM (ElfW (Half)) <= PTRDIFF_MAX); | ||
| 188 | 187 | ||
| 189 | #ifdef UNEXELF_DEBUG | 188 | #ifdef UNEXELF_DEBUG |
| 190 | # define DEBUG_LOG(expr) fprintf (stderr, #expr " 0x%"PRIxMAX"\n", \ | 189 | # define DEBUG_LOG(expr) fprintf (stderr, #expr " 0x%"PRIxMAX"\n", \ |