# HG changeset patch # User Sebastien Jodogne # Date 1769529903 -3600 # Node ID 80b663d5f8fe79ebd6cfa9d7850917d5e8bdd6c4 # Parent e1670bd75c1c75715c15fbfa1c71e21d45d894ce replaced boost::math::iround() by Orthanc::Math::llround() diff -r e1670bd75c1c -r 80b663d5f8fe Sources/EducationRestApi.cpp --- a/Sources/EducationRestApi.cpp Tue Jan 06 16:59:46 2026 +0100 +++ b/Sources/EducationRestApi.cpp Tue Jan 27 17:05:03 2026 +0100 @@ -33,6 +33,7 @@ #include "ProjectPermissionContext.h" #include "RestApiRouter.h" +#include #include #include #include @@ -41,7 +42,6 @@ #include #include -#include #include #include @@ -596,8 +596,8 @@ const float ratio = std::min(static_cast(target.GetWidth()) / static_cast(thumbnail.GetWidth()), static_cast(target.GetHeight()) / static_cast(thumbnail.GetHeight())); - thumbnail.Resize(static_cast(boost::math::llround(static_cast(thumbnail.GetWidth()) * ratio)), - static_cast(boost::math::llround(static_cast(thumbnail.GetHeight()) * ratio)), + thumbnail.Resize(static_cast(Orthanc::Math::llround(static_cast(thumbnail.GetWidth()) * ratio)), + static_cast(Orthanc::Math::llround(static_cast(thumbnail.GetHeight()) * ratio)), true /* smooth by default */); unsigned int offsetX = (target.GetWidth() - thumbnail.GetWidth()) / 2; diff -r e1670bd75c1c -r 80b663d5f8fe Sources/Security/JWT.cpp --- a/Sources/Security/JWT.cpp Tue Jan 06 16:59:46 2026 +0100 +++ b/Sources/Security/JWT.cpp Tue Jan 27 17:05:03 2026 +0100 @@ -27,11 +27,10 @@ #include "../HttpToolbox.h" #include "SecurityConstants.h" +#include #include #include -#include - JWT::JWT(const std::string& jwt) { @@ -85,7 +84,7 @@ // The "exp" field can be either an integer or decimal, so we // deal with the worst case of a double const double doubleExp = payload_[FIELD_EXP].asDouble(); - const int64_t exp = static_cast(boost::math::llround(doubleExp)); + const int64_t exp = static_cast(Orthanc::Math::llround(doubleExp)); const int64_t now = time(NULL); return now < exp; }