Correctly cast double to int. (#273)

Correctly cast double to int.
This commit is contained in:
Matthieu Gautier 2019-09-10 15:09:09 +02:00 committed by GitHub
commit 1a4c434e3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}