From 0c61515be1a247fd42c2290b9ac0f36b2f7b9b14 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 27 Oct 2018 13:07:26 +0200 Subject: Fix signedness warning --- src/nix/doctor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nix/doctor.cc b/src/nix/doctor.cc index b608b9d59efa..1ce3efcb0415 100644 --- a/src/nix/doctor.cc +++ b/src/nix/doctor.cc @@ -91,7 +91,7 @@ struct CmdDoctor : StoreCommand void checkStoreProtocol(unsigned int storeProto) { - auto clientProto = GET_PROTOCOL_MAJOR(SERVE_PROTOCOL_VERSION) == GET_PROTOCOL_MAJOR(storeProto) + unsigned int clientProto = GET_PROTOCOL_MAJOR(SERVE_PROTOCOL_VERSION) == GET_PROTOCOL_MAJOR(storeProto) ? SERVE_PROTOCOL_VERSION : PROTOCOL_VERSION; -- cgit 1.4.1