]> granicus.if.org Git - curl/commit
ssh-libssh.c: fix left shift compiler warning
authorDaniel Stenberg <daniel@haxx.se>
Thu, 3 May 2018 20:16:57 +0000 (22:16 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 3 May 2018 20:16:57 +0000 (22:16 +0200)
commit1156fdd01dcb7751081ea07603812666e5bbe6b7
tree020348d4f14847891829b64d33ede588883bdd44
parent7f41432c191c70f7f782802cd17e95e87a9a7671
ssh-libssh.c: fix left shift compiler warning

ssh-libssh.c:2429:21: warning: result of '1 << 31' requires 33 bits to
represent, but 'int' only has 32 bits [-Wshift-overflow=]

'len' will never be that big anyway so I converted the run-time check to
a regular assert.
lib/ssh-libssh.c