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 typepull/107/head
parent
355a2f357d
commit
91321b8b7f
2
seckey.h
2
seckey.h
|
|
@ -85,7 +85,7 @@ protected:
|
||||||
throw InvalidRounds(alg ? alg->AlgorithmName() : "VariableRounds", rounds);
|
throw InvalidRounds(alg ? alg->AlgorithmName() : "VariableRounds", rounds);
|
||||||
#else
|
#else
|
||||||
if (rounds < MIN_ROUNDS || rounds > MAX_ROUNDS)
|
if (rounds < MIN_ROUNDS || rounds > MAX_ROUNDS)
|
||||||
throw InvalidRounds(alg ? alg->AlgorithmName() : "VariableRounds", rounds);
|
throw InvalidRounds(alg ? alg->AlgorithmName() : std::string("VariableRounds"), rounds);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue