Add some casts to appease MSVC.
diff --git a/src/zipcmp.c b/src/zipcmp.c
index 61c30ed..4e14e60 100644
--- a/src/zipcmp.c
+++ b/src/zipcmp.c
@@ -233,8 +233,8 @@
     if (paranoid) {
 	if (comment_compare(a[0].comment, a[0].comment_length, a[1].comment, a[1].comment_length) != 0) {
 	    if (verbose) {
-		printf("--- archive comment (%ld)\n", a[0].comment_length);
-		printf("+++ archive comment (%ld)\n", a[1].comment_length);
+		printf("--- archive comment (%zd)\n", a[0].comment_length);
+		printf("+++ archive comment (%zd)\n", a[1].comment_length);
 	    }
 	    res = 1;
 	}
diff --git a/src/ziptool.c b/src/ziptool.c
index e33b9b5..e074a3d 100644
--- a/src/ziptool.c
+++ b/src/ziptool.c
@@ -503,7 +503,7 @@
     idx = strtoull(argv[0], NULL, 10);
     mtime = (time_t)strtoull(argv[1], NULL, 10);
     if (zip_file_set_mtime(za, idx, mtime, 0) < 0) {
-	fprintf(stderr, "can't set file mtime at index '%" PRIu64 "' to '%ld': %s\n", idx, mtime, zip_strerror(za));
+	fprintf(stderr, "can't set file mtime at index '%" PRIu64 "' to '%lld': %s\n", idx, (long long)mtime, zip_strerror(za));
 	return -1;
     }
     return 0;
@@ -523,7 +523,7 @@
     }
     for (idx = 0; idx < (zip_uint64_t)num_entries; idx++) {
 	if (zip_file_set_mtime(za, idx, mtime, 0) < 0) {
-	    fprintf(stderr, "can't set file mtime at index '%" PRIu64 "' to '%ld': %s\n", idx, mtime, zip_strerror(za));
+	    fprintf(stderr, "can't set file mtime at index '%" PRIu64 "' to '%lld': %s\n", idx, (long long)mtime, zip_strerror(za));
 	    return -1;
 	}
     }