From 91321b8b7fbc8d5f023094dab004e9c25bb6f9aa Mon Sep 17 00:00:00 2001 From: Crayon2000 Date: Fri, 8 Jan 2016 18:03:11 -0500 Subject: [PATCH] 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 --- seckey.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seckey.h b/seckey.h index 287d38a9..f8bdaeda 100644 --- a/seckey.h +++ b/seckey.h @@ -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 }