Ver código fonte

COMP: Remove win64 warnings

Andy Cedilnik 20 anos atrás
pai
commit
8c11d31cc3
2 arquivos alterados com 3 adições e 3 exclusões
  1. 1 1
      Utilities/cmcurl/formdata.c
  2. 2 2
      Utilities/cmtar/libtar.h

+ 1 - 1
Utilities/cmcurl/formdata.c

@@ -1469,7 +1469,7 @@ char *Curl_FormBoundary(void)
   if(!retstring)
     return NULL; /* failed */
 
-  srand(time(NULL)+randomizer++); /* seed */
+  srand((unsigned int)((time(NULL)+randomizer++))); /* seed */
 
   strcpy(retstring, "----------------------------");
 

+ 2 - 2
Utilities/cmtar/libtar.h

@@ -199,9 +199,9 @@ void th_set_user(TAR *t, uid_t uid);
 void th_set_group(TAR *t, gid_t gid);
 void th_set_mode(TAR *t, mode_t fmode);
 #define th_set_mtime(t, fmtime) \
-  int_to_oct_nonull((fmtime), (t)->th_buf.mtime, 12)
+  int_to_oct_nonull((int)(fmtime), (t)->th_buf.mtime, 12)
 #define th_set_size(t, fsize) \
-  int_to_oct_nonull((fsize), (t)->th_buf.size, 12)
+  int_to_oct_nonull((int)(fsize), (t)->th_buf.size, 12)
 
 /* encode everything at once (except the pathname and linkname) */
 void th_set_from_stat(TAR *t, struct stat *s);