Suppress conversion warning in Ratpack/conv.cpp.

When building for x64, the compiler complains:
    warning C4267: 'argument': conversion from 'size_t' to 'ULONG', possible loss of data

In practice, the number string will not exceed a ULONG in length.
This commit is contained in:
Daniel Belcher 2019-03-05 14:25:55 -08:00
Родитель b865b1b2aa
Коммит 057401f5f2
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -578,7 +578,7 @@ PNUMBER StringToNumber(wstring_view numberString, uint32_t radix, int32_t precis
long expValue = 0L; // expValue is exponent mantissa, should be unsigned
PNUMBER pnumret = nullptr;
createnum(pnumret, numberString.length());
createnum(pnumret, static_cast<ULONG>(numberString.length()));
pnumret->sign = 1L;
pnumret->cdigit = 0;
pnumret->exp = 0;