Fix warning.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 4 Dec 2005 21:34:51 +0000 (21:34 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 4 Dec 2005 21:34:51 +0000 (21:34 +0000)
crypto/asn1/a_object.c

index a11d25e1fb7a8b8ca172fb2a080e5a80e53dd969..0fbc368f0db569ec3a051ad4603007db439872b0 100644 (file)
@@ -186,7 +186,7 @@ int a2d_ASN1_OBJECT(unsigned char *out, int olen, const char *buf, int num)
                                        goto err;
                                }
                        while(blsize--)
-                               tmp[i++] = BN_div_word(bl, 0x80L);
+                               tmp[i++] = (unsigned char)BN_div_word(bl, 0x80L);
                        }
                else
                        {