On Thu, Mar 02, 2000 at 11:17:10PM -0500, Henry E. Thorpe wrote:

> .\crypto\bio\bss_bio.c(374) : warning C4245: 'return' : conversion
> from
> 'const int ' to 'unsigned int ', signed/unsigned mismatch

size_t is defined as an unsigned type, so trying to return -1 is a bug.

> I also had to cast the "mask =" statements in
> ASN1_STRING_set_default_mask_asc to (unsigned long):

> Were these safe things to do?

This error message is more surprising, but it is safe to add a cast.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to