Cast cached_piece_info::kind to int.
This commit is contained in:
parent
c5f1c07a87
commit
3abecd2546
|
@ -477,7 +477,7 @@ namespace
|
||||||
d["piece"] = i->piece;
|
d["piece"] = i->piece;
|
||||||
d["last_use"] = total_milliseconds(now - i->last_use) / 1000.f;
|
d["last_use"] = total_milliseconds(now - i->last_use) / 1000.f;
|
||||||
d["next_to_hash"] = i->next_to_hash;
|
d["next_to_hash"] = i->next_to_hash;
|
||||||
d["kind"] = i->kind;
|
d["kind"] = static_cast<int>(i->kind);
|
||||||
pieces.append(d);
|
pieces.append(d);
|
||||||
}
|
}
|
||||||
return pieces;
|
return pieces;
|
||||||
|
|
Loading…
Reference in New Issue