mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-30 16:05:51 +00:00
Some UInt8 support was missing.
This commit is contained in:
@@ -24,6 +24,9 @@ std::auto_ptr<SerializedType> STObject::makeDefaultObject(SerializedTypeID id, S
|
||||
case STI_NOTPRESENT:
|
||||
return std::auto_ptr<SerializedType>(new SerializedType(name));
|
||||
|
||||
case STI_UINT8:
|
||||
return std::auto_ptr<SerializedType>(new STUInt8(name));
|
||||
|
||||
case STI_UINT16:
|
||||
return std::auto_ptr<SerializedType>(new STUInt16(name));
|
||||
|
||||
@@ -64,6 +67,8 @@ std::auto_ptr<SerializedType> STObject::makeDefaultObject(SerializedTypeID id, S
|
||||
return std::auto_ptr<SerializedType>(new STArray(name));
|
||||
|
||||
default:
|
||||
cLog(lsFATAL) << "Object type: " << lexical_cast_i(id);
|
||||
assert(false);
|
||||
throw std::runtime_error("Unknown object type");
|
||||
}
|
||||
}
|
||||
@@ -76,6 +81,9 @@ std::auto_ptr<SerializedType> STObject::makeDeserializedObject(SerializedTypeID
|
||||
case STI_NOTPRESENT:
|
||||
return SerializedType::deserialize(name);
|
||||
|
||||
case STI_UINT8:
|
||||
return STUInt8::deserialize(sit, name);
|
||||
|
||||
case STI_UINT16:
|
||||
return STUInt16::deserialize(sit, name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user