mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-09-08 06:39:53 -04:00
Correctly cast double to int.
Ms cl compiler complains about the implicit conversion.
This commit is contained in:
parent
351e573bce
commit
3294508d87
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user