[vlc-commits] access/dcp: AESKey::decryptyRSA: fix narrowing-conversion in case-label
Filip Roséen
git at videolan.org
Sat Feb 25 15:00:07 CET 2017
vlc | branch: master | Filip Roséen <filip at atch.se> | Sat Feb 25 07:28:21 2017 +0100| [aafa93f8283f6ce324460b211b53a26303d7dd54] | committer: Jean-Baptiste Kempf
access/dcp: AESKey::decryptyRSA: fix narrowing-conversion in case-label
narrowing-conversions are not allowed in case-statements as of C++11,
meaning that the former implementation caused standard-compliant
compilers to emit a diagnostic on the line in question.
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aafa93f8283f6ce324460b211b53a26303d7dd54
---
modules/access/dcp/dcpdecrypt.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/access/dcp/dcpdecrypt.cpp b/modules/access/dcp/dcpdecrypt.cpp
index e7dcaa9..88cce85 100644
--- a/modules/access/dcp/dcpdecrypt.cpp
+++ b/modules/access/dcp/dcpdecrypt.cpp
@@ -327,7 +327,7 @@ int AESKey::decryptRSA( string s_cipher_text_b64 )
if( this->extractInfo( ps_plain_text, false ) )
goto end;
break;
- case -1:
+ case static_cast<size_t>( -1 ):
msg_Err( this->p_demux, "could not decrypt" );
goto end;
default:
More information about the vlc-commits
mailing list