Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop >= LFS_ZERO (always true, generates warning) #135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lodepng.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5434,7 +5434,7 @@ static unsigned filter(unsigned char* out, const unsigned char* in, unsigned w,

if(bpp == 0) return 31; /*error: invalid color type*/

if(strategy >= LFS_ZERO && strategy <= LFS_FOUR) {
if(strategy <= LFS_FOUR) {
unsigned char type = (unsigned char)strategy;
for(y = 0; y != h; ++y) {
size_t outindex = (1 + linebytes) * y; /*the extra filterbyte added to each row*/
Expand Down