From d5962e9b673834c6dba2096921c757ad98546a2a Mon Sep 17 00:00:00 2001 From: anders_k Date: Sun, 24 Mar 2013 23:27:09 +0000 Subject: [PATCH] DWORD type is unsigned long, not int git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6321 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/Library/LibraryLocal/LibraryLocal.cpp | 4 ++-- Source/Platform.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Contrib/Library/LibraryLocal/LibraryLocal.cpp b/Contrib/Library/LibraryLocal/LibraryLocal.cpp index d500ed20..d083490e 100644 --- a/Contrib/Library/LibraryLocal/LibraryLocal.cpp +++ b/Contrib/Library/LibraryLocal/LibraryLocal.cpp @@ -154,8 +154,8 @@ int _tmain(int argc, TCHAR* argv[]) } else { - fprintf(fHdr, "!define LIBRARY_VERSION_HIGH %u\n", high); - fprintf(fHdr, "!define LIBRARY_VERSION_LOW %u\n", low); + fprintf(fHdr, "!define LIBRARY_VERSION_HIGH %lu\n", high); + fprintf(fHdr, "!define LIBRARY_VERSION_LOW %lu\n", low); } fclose(fHdr); diff --git a/Source/Platform.h b/Source/Platform.h index c34c154e..19818f4e 100644 --- a/Source/Platform.h +++ b/Source/Platform.h @@ -39,7 +39,7 @@ // basic types typedef unsigned char BYTE, *PBYTE, *LPBYTE; typedef unsigned short WORD, *LPWORD; -typedef unsigned int DWORD, *LPDWORD; +typedef unsigned long DWORD, *LPDWORD; typedef short SHORT; typedef unsigned short USHORT; typedef unsigned int UINT;