Skip to content

Commit f7504b1

Browse files
committed
Changed variable
1 parent 4f8173f commit f7504b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PIL/PpmImagePlugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def _open(self):
115115
if maxval > 255:
116116
if not mode == "L":
117117
raise ValueError(f"Too many colors for band: {token}")
118-
if token < 2 ** 16:
118+
if maxval < 2 ** 16:
119119
self.mode = "I"
120120
rawmode = "I;16B"
121121
else:

0 commit comments

Comments
 (0)