Merge pull request #142 from adrian17/master

Fixed compiler warnings
This commit is contained in:
Henrik Rydgård 2013-09-29 10:46:58 -07:00
commit f8f24c824e
3 changed files with 3 additions and 3 deletions

View File

@ -219,7 +219,7 @@ void ChunkFile::writeWString(const std::string &str) {
unsigned short *text;
size_t len = str.length();
text = new unsigned short[len+1];
for (int i=0; i<len; i++)
for (size_t i=0; i<len; i++)
text[i]=str[i];
text[len]=0;
writeInt(len);

View File

@ -367,7 +367,7 @@ bool initPostfixExpression(const char* infix, IExpressionFunctions* funcs, Postf
bool parsePostfixExpression(PostfixExpression& exp, IExpressionFunctions* funcs, uint32& dest)
{
int num = 0;
size_t num = 0;
uint32 opcode;
std::vector<uint32> valueStack;
unsigned int arg[5];

View File

@ -362,7 +362,7 @@ const char *u8_strchr(const char *s, uint32_t ch, int *charn)
const char *u8_memchr(const char *s, uint32_t ch, size_t sz, int *charn)
{
int i = 0, lasti=0;
size_t i = 0, lasti=0;
uint32_t c;
int csz;