summaryrefslogtreecommitdiff
path: root/ext/zip/lib/zip_fopen_encrypted.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zip/lib/zip_fopen_encrypted.c')
-rw-r--r--ext/zip/lib/zip_fopen_encrypted.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/ext/zip/lib/zip_fopen_encrypted.c b/ext/zip/lib/zip_fopen_encrypted.c
index 8aba062567..34230f00d7 100644
--- a/ext/zip/lib/zip_fopen_encrypted.c
+++ b/ext/zip/lib/zip_fopen_encrypted.c
@@ -37,14 +37,13 @@
-ZIP_EXTERN(struct zip_file *)
-zip_fopen_encrypted(struct zip *za, const char *fname, int flags,
- const char *password)
+ZIP_EXTERN struct zip_file *
+zip_fopen_encrypted(struct zip *za, const char *fname, zip_flags_t flags, const char *password)
{
- int idx;
+ zip_int64_t idx;
if ((idx=zip_name_locate(za, fname, flags)) < 0)
return NULL;
- return zip_fopen_index_encrypted(za, idx, flags, password);
+ return zip_fopen_index_encrypted(za, (zip_uint64_t)idx, flags, password);
}