mirror of https://github.com/kiwix/libkiwix.git
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;
|
pageEnd = estimatedResultCount / resultCountPerPage;
|
||||||
}
|
}
|
||||||
if (estimatedResultCount > resultCountPerPage) {
|
if (estimatedResultCount > resultCountPerPage) {
|
||||||
lastPageStart = round(estimatedResultCount/resultCountPerPage) * resultCountPerPage;
|
lastPageStart = static_cast<int>(round(estimatedResultCount/resultCountPerPage)) * resultCountPerPage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue