diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-10-27T11·07+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-10-27T11·07+0200 |
commit | 0c61515be1a247fd42c2290b9ac0f36b2f7b9b14 (patch) | |
tree | b1ed444ddf1e5c6a4cff48f705553b2133c40eb0 /src/nix | |
parent | 63575ffa38650d84aaec04d7447f92cf06db52a5 (diff) |
Fix signedness warning
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/doctor.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |