Commit b818a856 authored by Brad King's avatar Brad King Committed by Kitware Robot

Merge topic 'SystemTools-fix-test-warning'

e08eee61 SystemTools: Fix conversion warning in test case
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !8
parents 8f2bb59e e08eee61
......@@ -894,10 +894,10 @@ static bool CheckGetLineFromStream()
bool ret = true;
for (long size = 1; size <= 5; ++size) {
for (size_t size = 1; size <= 5; ++size) {
file.seekg(0, std::ios::beg);
result =
kwsys::SystemTools::GetLineFromStream(file, line, &has_newline, size);
result = kwsys::SystemTools::GetLineFromStream(file, line, &has_newline,
static_cast<long>(size));
if (!result || line.size() != size) {
std::cerr << "Should have read " << size << " characters but got "
<< line.size() << std::endl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment