COMP: fix warning on MSVC 8: conversion from 'size_t' to 'unsigned int', possible loss of data

Alex
This commit is contained in:
Alexander Neundorf 2007-05-28 08:31:26 -04:00
parent 9b5ed0cfa9
commit 00c9964a8c
1 changed files with 1 additions and 1 deletions

View File

@ -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--;