Просмотр исходного кода

Merge pull request #92 from emfa/master

Changed pos to unsigned int to prevent warning from happening.
pull/71/merge
Paul J. Davis 10 лет назад
Родитель
Сommit
446e284bd5
1 измененных файлов: 1 добавлений и 1 удалений
  1. +1
    -1
      c_src/double-conversion/bignum.cc

+ 1
- 1
c_src/double-conversion/bignum.cc Просмотреть файл

@ -103,7 +103,7 @@ void Bignum::AssignDecimalString(Vector value) {
const int kMaxUint64DecimalDigits = 19; const int kMaxUint64DecimalDigits = 19;
Zero(); Zero();
int length = value.length(); int length = value.length();
int pos = 0;
unsigned int pos = 0;
// Let's just say that each digit needs 4 bits. // Let's just say that each digit needs 4 bits.
while (length >= kMaxUint64DecimalDigits) { while (length >= kMaxUint64DecimalDigits) {
uint64_t digits = ReadUInt64(value, pos, kMaxUint64DecimalDigits); uint64_t digits = ReadUInt64(value, pos, kMaxUint64DecimalDigits);

Загрузка…
Отмена
Сохранить