access/dcp: AESKey::decryptyRSA: fix narrowing-conversion in case-label
authorFilip Roséen <filip@atch.se>
Sat, 25 Feb 2017 06:28:21 +0000 (07:28 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 25 Feb 2017 13:59:56 +0000 (14:59 +0100)
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@videolan.org>
modules/access/dcp/dcpdecrypt.cpp

index e7dcaa9..88cce85 100644 (file)
@@ -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: