From e4abc190d63b8203da2c8b892717604f4d57d2aa Mon Sep 17 00:00:00 2001 From: "Pavel I. Kryukov" Date: Fri, 20 Jul 2018 18:27:30 +0300 Subject: [PATCH] Cast -1 to Elf_Half explicitly to suppress Visual Studio warning --- elfio/elfio_segment.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elfio/elfio_segment.hpp b/elfio/elfio_segment.hpp index 02d752a..249c6f3 100644 --- a/elfio/elfio_segment.hpp +++ b/elfio/elfio_segment.hpp @@ -149,7 +149,7 @@ class segment_impl : public segment return sections[num]; } - return -1; + return Elf_Half(-1); } //------------------------------------------------------------------------------