]> granicus.if.org Git - curl/commitdiff
typecase to please the compiler gods
authorDaniel Stenberg <daniel@haxx.se>
Fri, 29 Aug 2003 08:43:21 +0000 (08:43 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 29 Aug 2003 08:43:21 +0000 (08:43 +0000)
lib/version.c

index 63ed63c4165f333455d9ab71f704d2757c30b3c4..651f895e110b4c94b45a3918a067aadd1cc08c51 100644 (file)
@@ -46,7 +46,7 @@ static void getssl_version(char *ptr, long *num)
     }
     else {
       if(ssleay_value&0xff0) {
-        sub[0]=((ssleay_value>>4)&0xff) + 'a' -1;
+        sub[0]=(char)((ssleay_value>>4)&0xff) + 'a' -1;
       }
       else
         sub[0]='\0';