From 1fa184ba8aaa30a1f3f0790a75c817a2e329943b Mon Sep 17 00:00:00 2001 From: arvidn Date: Sat, 7 Nov 2015 10:01:01 -0500 Subject: [PATCH] fix msvc-10.0 build --- simulation/libsimulator | 2 +- src/torrent_info.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/simulation/libsimulator b/simulation/libsimulator index 504c0b3ef..a5479665a 160000 --- a/simulation/libsimulator +++ b/simulation/libsimulator @@ -1 +1 @@ -Subproject commit 504c0b3efa3ae15b43f7168536e05c58d131bb24 +Subproject commit a5479665ad3b2366721a166dcda527b987825f86 diff --git a/src/torrent_info.cpp b/src/torrent_info.cpp index 77525c381..e1ee82368 100644 --- a/src/torrent_info.cpp +++ b/src/torrent_info.cpp @@ -1152,7 +1152,7 @@ namespace libtorrent h.update(section.first, section.second); m_info_hash = h.final(); - if (section.second >= UINT32_MAX) + if (section.second >= (std::numeric_limits::max)()) { ec = errors::metadata_too_large; return false;