summaryrefslogtreecommitdiff
path: root/ext/zip/lib/zip_get_file_comment.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zip/lib/zip_get_file_comment.c')
-rw-r--r--ext/zip/lib/zip_get_file_comment.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/zip/lib/zip_get_file_comment.c b/ext/zip/lib/zip_get_file_comment.c
index 57dd9028bc..43c1520e1d 100644
--- a/ext/zip/lib/zip_get_file_comment.c
+++ b/ext/zip/lib/zip_get_file_comment.c
@@ -38,9 +38,9 @@
ZIP_EXTERN(const char *)
-zip_get_file_comment(struct zip *za, int idx, int *lenp, int flags)
+zip_get_file_comment(struct zip *za, zip_uint64_t idx, int *lenp, int flags)
{
- if (idx < 0 || idx >= za->nentry) {
+ if (idx >= za->nentry) {
_zip_error_set(&za->error, ZIP_ER_INVAL, 0);
return NULL;
}