]> granicus.if.org Git - curl/commit
schannel: fix -Wsign-compare warning
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Sun, 8 Jul 2018 15:16:34 +0000 (17:16 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Mon, 9 Jul 2018 16:09:05 +0000 (18:09 +0200)
commit424f1cfefbace57e5873e614a43ff14b251bbc7e
tree91c690109361cdc64b1651b7545469f2caed7b34
parent07f7c93f92c15e1a4a6489a05b1eb4c7b33cf6a4
schannel: fix -Wsign-compare warning

MinGW warns:
/lib/vtls/schannel.c:219:64: warning: signed and unsigned type in
conditional expression [-Wsign-compare]

Fix this by casting the ptrdiff_t to size_t as we know it's positive.

Closes https://github.com/curl/curl/pull/2721
lib/vtls/schannel.c