Skip to content

Commit e503416

Browse files
authored
Merge pull request #271 from r4d1sh/msvc
Fix a few warnings reported by MSVC compiler
2 parents 49f525e + a24ab2c commit e503416

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/net/BoostHttpOnlySslClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ string BoostHttpOnlySslClient::makeRequest(const Url& url, const vector<HttpReqA
5959
// We'll need to get the underlying native socket for this select call, in order
6060
// to add a simple timeout on the read:
6161

62-
int nativeSocket = socket.lowest_layer().native_handle();
62+
int nativeSocket = static_cast<int>(socket.lowest_layer().native_handle());
6363

6464
FD_SET(nativeSocket,&fileDescriptorSet);
6565
select(nativeSocket+1,&fileDescriptorSet,NULL,NULL,&timeStruct);

src/tools/StringTools.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ string generateRandomString(std::size_t length) {
6363

6464
random_device randomDevice;
6565
mt19937 randomSeed(randomDevice());
66-
uniform_int_distribution<int> generator(0, charsLen - 1);
66+
uniform_int_distribution<std::size_t> generator(0, charsLen - 1);
6767

6868
for (std::size_t i = 0; i < length; ++i) {
6969
result += chars[generator(randomSeed)];

0 commit comments

Comments
 (0)