From 480be96fcdfa85c357c695ad9bc34cd482e9abd5 Mon Sep 17 00:00:00 2001 From: kichik Date: Wed, 11 Apr 2007 21:15:25 +0000 Subject: [PATCH] cast warning git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5054 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/build.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/build.cpp b/Source/build.cpp index 43a31f3f..a88df6b2 100644 --- a/Source/build.cpp +++ b/Source/build.cpp @@ -441,16 +441,16 @@ int CEXEBuild::preprocess_string(char *out, const char *in, WORD codepage/*=CP_A int l = np - p; while (l--) { - int i = (unsigned char)*p++; + unsigned char i = (unsigned char)*p++; if (i >= NS_CODES_START) { *out++ = (char)NS_SKIP_CODE; } - *out++=i; + *out++=(char)i; } continue; } - int i = (unsigned char)*p; + unsigned char i = (unsigned char)*p; p=np; @@ -579,7 +579,7 @@ int CEXEBuild::preprocess_string(char *out, const char *in, WORD codepage/*=CP_A } } } - *out++=i; + *out++=(char)i; } *out=0; return 0;