bss_file.c: fix MSC 6.0 warning [from HEAD].
authorAndy Polyakov <appro@openssl.org>
Mon, 22 Mar 2010 22:40:18 +0000 (22:40 +0000)
committerAndy Polyakov <appro@openssl.org>
Mon, 22 Mar 2010 22:40:18 +0000 (22:40 +0000)
crypto/bio/bss_file.c

index 1222133dd78aa0a07a438ffe9181d85912126802..47fa266dfc48fc6aa27a5b69a7f196cab1ae9a95 100644 (file)
@@ -274,7 +274,7 @@ static long MS_CALLBACK file_ctrl(BIO *b, int cmd, long num, void *ptr)
 #endif
 #ifdef UP_fsetmod
                if (b->flags&BIO_FLAGS_UPLINK)
-                       UP_fsetmod(b->ptr,num&BIO_FP_TEXT?'t':'b');
+                       UP_fsetmod(b->ptr,(char)((num&BIO_FP_TEXT)?'t':'b'));
                else
 #endif
                {