You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Take the following ZIP file structure, which consists of one file:
./dir
└── test.lua
If you try out the following code:
localminiz=require("miniz")
localreader=miniz.new_reader("dir.zip")
localstats=reader:stat(1) -- our only file in this central directoryassert(stats.index==1)
The above assertion will fail, because while lminiz accepts a 1-based index of the file, it internally subtracts one, and then never adds that one back to any output. This applies to errors too:
This issue is more of a question, @zhaozg is lminiz supposed to be transparent about the difference in index or is the current behavior the expected one?
The text was updated successfully, but these errors were encountered:
Take the following ZIP file structure, which consists of one file:
If you try out the following code:
The above assertion will fail, because while lminiz accepts a 1-based index of the file, it internally subtracts one, and then never adds that one back to any output. This applies to errors too:
This issue is more of a question, @zhaozg is lminiz supposed to be transparent about the difference in index or is the current behavior the expected one?
The text was updated successfully, but these errors were encountered: