Casting string literal to avoid bcc32 Error

This will fix this error with C++Builder:
[bcc32 Error] seckey.h(88): E2354 Two operands must evaluate to the same type
pull/107/head
Crayon2000 2016-01-08 18:03:11 -05:00
parent 355a2f357d
commit 91321b8b7f
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ protected:
throw InvalidRounds(alg ? alg->AlgorithmName() : "VariableRounds", rounds);
#else
if (rounds < MIN_ROUNDS || rounds > MAX_ROUNDS)
throw InvalidRounds(alg ? alg->AlgorithmName() : "VariableRounds", rounds);
throw InvalidRounds(alg ? alg->AlgorithmName() : std::string("VariableRounds"), rounds);
#endif
}