You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
template <typename U> static T normalize(const U& x) {
assumes that the initial value of U can be held in T. This is not always the case (i.e. when U is int64_t and T is int32_t). To fix this, change the line to T res = x % mod();
templates/math/mod.hpp
Line 20 in de5c9c1
assumes that the initial value of
Ucan be held inT. This is not always the case (i.e. whenUisint64_tandTisint32_t). To fix this, change the line toT res = x % mod();