COMP: fix warning on MSVC 8: conversion from 'size_t' to 'unsigned int', possible loss of data
Alex
This commit is contained in:
parent
9b5ed0cfa9
commit
00c9964a8c
|
@ -38,7 +38,7 @@ static unsigned int ChompStrlen(const char* line)
|
|||
{
|
||||
return 0;
|
||||
}
|
||||
unsigned int length = strlen(line);
|
||||
size_t length = strlen(line);
|
||||
if ((line[length-1] == '\n') || (line[length-1] == '\r'))
|
||||
{
|
||||
length--;
|
||||
|
|
Loading…
Reference in New Issue