Fix compiler warning: conversion from "int" to "unsigned short" may lose significant bits

This commit is contained in:
Yang Tse
2007-10-20 15:11:51 +00:00
parent e8d3710aff
commit 5c8fc7dce9
3 changed files with 4 additions and 4 deletions

View File

@@ -3101,7 +3101,7 @@ static CURLcode setup_connection_internals(struct SessionHandle *data,
}
conn->port = p->defport;
conn->remote_port = p->defport;
conn->remote_port = (unsigned short)p->defport;
conn->protocol |= p->protocol;
return CURLE_OK;
}