From c6724968f1c1b37b16438414396d0a0811b4f505 Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Sat, 3 Jan 2015 00:40:28 +0100 Subject: [PATCH] pefile.cpp: work around a gcc-3.4 limitation. --- src/pefile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pefile.cpp b/src/pefile.cpp index 3a4d6e73..f607f1a4 100644 --- a/src/pefile.cpp +++ b/src/pefile.cpp @@ -918,7 +918,7 @@ unsigned PeFile::processImports0(ord_mask_t ord_mask) // pass 1 dlls[ic].shname = NULL; dlls[ic].ordinal = 0; dlls[ic].iat = im->iat; - dlls[ic].lookupt = (LEXX*) (ibuf + (im->oft ? im->oft : im->iat)); + dlls[ic].lookupt = (LEXX*) (ibuf + (unsigned) (im->oft ? im->oft : im->iat)); dlls[ic].original_position = ic; dlls[ic].isk32 = strcasecmp(kernelDll(), (const char*)dlls[ic].name) == 0;