mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-28 05:49:35 +00:00
Correctly cast double to int.
Ms cl compiler complains about the implicit conversion.
This commit is contained in:
@ -108,7 +108,7 @@ std::string SearchRenderer::getHtml()
|
||||
pageEnd = estimatedResultCount / resultCountPerPage;
|
||||
}
|
||||
if (estimatedResultCount > resultCountPerPage) {
|
||||
lastPageStart = round(estimatedResultCount/resultCountPerPage) * resultCountPerPage;
|
||||
lastPageStart = static_cast<int>(round(estimatedResultCount/resultCountPerPage)) * resultCountPerPage;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user