Commit 556a2d44 authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

compilation fix for call to div(3)

parent 1c791cc2
......@@ -747,7 +747,7 @@ private:
// ket = sz' + lz'*(2s + 1)
SizeType mPlusJ(SizeType ket, SizeType orbital) const
{
div_t q = div(ket, modelParams_.twiceS + 1);
div_t q = div(static_cast<int>(ket), static_cast<int>(modelParams_.twiceS + 1));
assert(static_cast<SizeType>(q.rem) <= modelParams_.twiceS);
assert(static_cast<SizeType>(q.quot) <= modelParams_.twiceL);
return (orbital == 0) ? q.rem : q.quot;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment