From c848f6d97823545a52027fb725fe7e04138526ad Mon Sep 17 00:00:00 2001 From: arvidn Date: Thu, 7 Sep 2017 16:18:45 +0200 Subject: [PATCH] improve some asserts in storage.cpp --- src/storage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage.cpp b/src/storage.cpp index 75b04c779..adb520924 100644 --- a/src/storage.cpp +++ b/src/storage.cpp @@ -922,11 +922,11 @@ namespace libtorrent stat_file(fs.file_path(i, m_save_path), &s, error); if (s.file_size >= 0 && !error) { - TORRENT_ASSERT(s.file_size == file_size); + TORRENT_ASSERT_VAL(s.file_size == file_size, file_size); } else { - TORRENT_ASSERT(file_size == 0); + TORRENT_ASSERT_VAL(file_size == 0, file_size); } } #endif