1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-11-06 08:49:29 +02:00

Use uint variant to store enum in verifyProtocol().

Avoid the need for a cast by using a matching type.

Found on MacOS M1.
This commit is contained in:
David Steele
2021-01-22 09:04:28 -05:00
parent 8d883ea76b
commit 547b297387

View File

@@ -43,7 +43,7 @@ verifyProtocol(const String *command, const VariantList *paramList, ProtocolServ
varUInt64(varLstGet(paramList, 2)), // File size
varStr(varLstGet(paramList, 3))); // Cipher pass
protocolServerResponse(server, varNewInt(result));
protocolServerResponse(server, VARUINT(result));
}
else
found = false;