From 15e6286454b9de1d41a9c179942b797b07728f07 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 24 Sep 2004 14:32:58 +0000 Subject: [PATCH] fixed compile error on POSIX git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3665 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/Platform.h | 2 +- Source/script.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Platform.h b/Source/Platform.h index 1434e116..0c98a3bb 100644 --- a/Source/Platform.h +++ b/Source/Platform.h @@ -368,7 +368,7 @@ typedef WORD LANGID; # define VS_VERSION_INFO 1 #endif #ifndef VS_FFI_SIGNATURE -# define VS_FFI_SIGNATURE 0xFEEFO4BD +# define VS_FFI_SIGNATURE 0xFEEF04BD #endif // message box diff --git a/Source/script.cpp b/Source/script.cpp index 53acf166..3c9f218c 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -4421,7 +4421,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line) if (ver) { - if (versize > sizeof(WORD) * 3) + if ((size_t) versize > sizeof(WORD) * 3) { // get VS_FIXEDFILEINFO from VS_VERSIONINFO WCHAR *szKey = (WCHAR *)(ver + sizeof(WORD) * 3);