mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-10 05:03:33 +01:00
Linux: Fix compilation error on some 32-bit machines.
This commit is contained in:
parent
5b5af85dbf
commit
bd843ffa05
@ -140,14 +140,17 @@ namespace VeraCrypt
|
||||
{
|
||||
Exception::Deserialize(stream);
|
||||
Serializer sr(stream);
|
||||
sr.Deserialize("ErrorCode", ErrorCode);
|
||||
int64 v;
|
||||
sr.Deserialize("ErrorCode", v);
|
||||
ErrorCode = (LONG_PCSC)v;
|
||||
}
|
||||
|
||||
void PCSCException::Serialize(shared_ptr <Stream> stream) const
|
||||
{
|
||||
Exception::Serialize(stream);
|
||||
Serializer sr(stream);
|
||||
sr.Serialize("ErrorCode", ErrorCode);
|
||||
int64 v = (int64)ErrorCode;
|
||||
sr.Serialize("ErrorCode", v);
|
||||
}
|
||||
|
||||
# define TC_EXCEPTION(TYPE) TC_SERIALIZER_FACTORY_ADD(TYPE)
|
||||
|
Loading…
Reference in New Issue
Block a user