From 8860e903f5d0782e050d78725aadedeb8dad9a0c Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 3 Aug 2015 08:43:10 +0300 Subject: pe_impl_strlen_ansi: fix internal error reporting via signedness. --- src/internal/pe_impl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/internal/pe_impl.c') diff --git a/src/internal/pe_impl.c b/src/internal/pe_impl.c index 2611f6b..594f23d 100644 --- a/src/internal/pe_impl.c +++ b/src/internal/pe_impl.c @@ -8,7 +8,7 @@ #include #include "pe_impl.h" -uint32_t pe_impl_strlen_ansi(const char * str) +int32_t pe_impl_strlen_ansi(const char * str) { char * ch; char * upper_bound; @@ -25,7 +25,7 @@ uint32_t pe_impl_strlen_ansi(const char * str) } -uint32_t pe_impl_strlen_utf16(const wchar16_t * str) +int32_t pe_impl_strlen_utf16(const wchar16_t * str) { wchar16_t * wch; wchar16_t * upper_bound; -- cgit v1.2.3