Static analyzer bug fixes
[silc.git] / lib / silcasn1 / silcasn1_decode.c
index 3030d07cd4af28b3a2093f05ae2b1e58100e24f0..8e9776617224a714cd22746018e46beae5c92893 100644 (file)
@@ -408,7 +408,7 @@ silc_asn1_decoder(SilcAsn1 asn1, SilcStack stack1, SilcAsn1Tag type,
       }
 
       /* Decode by the type user expects the data to be. */
-      switch (type) {
+      switch ((long)type) {
 
       case SILC_ASN1_TAG_ANY:
        {