Fix serializer MSVC C4244

This commit is contained in:
Fangrui Song 2018-01-18 11:22:36 -08:00
parent bffe9203eb
commit 5bef84cabf

View File

@ -43,14 +43,14 @@ void Reflect(Writer& visitor, unsigned& value) {
}
void Reflect(Reader& visitor, long& value) {
value = visitor.GetInt64();
value = long(visitor.GetInt64());
}
void Reflect(Writer& visitor, long& value) {
visitor.Int64(value);
}
void Reflect(Reader& visitor, unsigned long& value) {
value = visitor.GetUint64();
value = (unsigned long)visitor.GetUint64();
}
void Reflect(Writer& visitor, unsigned long& value) {
visitor.Uint64(value);