MathLib:mod: Declared local variable as const. No functional change.

This commit is contained in:
orbitcowboy 2015-04-07 17:21:28 +02:00
parent eedcb6abcb
commit 8596794ce7
1 changed files with 1 additions and 1 deletions

View File

@ -605,7 +605,7 @@ std::string MathLib::multiply(const std::string &first, const std::string &secon
std::string MathLib::mod(const std::string &first, const std::string &second)
{
if (MathLib::isInt(first) && MathLib::isInt(second)) {
bigint b = toLongNumber(second);
const bigint b = toLongNumber(second);
if (b == 0)
throw InternalError(0, "Internal Error: Division by zero");
return toString(toLongNumber(first) % b);