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

index cb2abeae116f6e3e41acda4ceb4673413bc5bcaa..ba4f8e9940300686b797d890007233b2364627ce 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
                {