Static analyzer bug fixes
[silc.git] / lib / silcasn1 / silcasn1_encode.c
index 986909c4d7348cdd43e4146dc9cb9f217510e381..81775ce2f9621ba9b6efa663ab8c32d6359b686e 100644 (file)
@@ -163,7 +163,7 @@ silc_asn1_encoder(SilcAsn1 asn1, SilcStack stack1, SilcStack stack2,
     }
 
     /* Encode by the type */
-    switch (type) {
+    switch ((long)type) {
 
     case SILC_ASN1_TAG_ANY:
       {