mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 17:49:29 +01:00
warnin fixin
This commit is contained in:
1 parent
b041bd474b
commit
4a6bc60ea8
5 files changed
+8
-6
No files matched your search
+3
-2
@@ -1,6 +1,7 @@
|
||||
#include "net/http_client.h"
|
||||
|
||||
// for inet_pton
|
||||
#undef _WIN32_WINNT
|
||||
#define _WIN32_WINNT 0x600
|
||||
|
||||
#ifndef _WIN32
|
||||
@@ -34,7 +35,7 @@ Connection::~Connection() {
|
||||
}
|
||||
|
||||
bool Connection::Resolve(const char *host, int port) {
|
||||
CHECK_EQ(-1, sock_);
|
||||
CHECK_EQ(-1, (intptr_t)sock_);
|
||||
host_ = host;
|
||||
port_ = port;
|
||||
|
||||
@@ -68,7 +69,7 @@ void Connection::Connect() {
|
||||
}
|
||||
|
||||
void Connection::Disconnect() {
|
||||
if (sock_ != -1) {
|
||||
if ((intptr_t)sock_ != -1) {
|
||||
closesocket(sock_);
|
||||
sock_ = -1;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user