Skip to content

Commit f162d65

Browse files
authored
Merge pull request #7695 from radarhere/non_zero
2 parents d329207 + 2d6ad58 commit f162d65

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Tests/test_file_eps.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def test_render_scale1():
270270
image1_scale1_compare.load()
271271
assert_image_similar(image1_scale1, image1_scale1_compare, 5)
272272

273-
# Non-Zero bounding box
273+
# Non-zero bounding box
274274
with Image.open(FILE2) as image2_scale1:
275275
image2_scale1.load()
276276
with Image.open(FILE2_COMPARE) as image2_scale1_compare:
@@ -292,7 +292,7 @@ def test_render_scale2():
292292
image1_scale2_compare.load()
293293
assert_image_similar(image1_scale2, image1_scale2_compare, 5)
294294

295-
# Non-Zero bounding box
295+
# Non-zero bounding box
296296
with Image.open(FILE2) as image2_scale2:
297297
image2_scale2.load(scale=2)
298298
with Image.open(FILE2_COMPARE_SCALE2) as image2_scale2_compare:

Tests/test_image_resample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def test_reduce(self):
403403
if px[2, 0] != test_color // 2:
404404
assert test_color // 2 == px[2, 0]
405405

406-
def test_nonzero_coefficients(self):
406+
def test_non_zero_coefficients(self):
407407
# regression test for the wrong coefficients calculation
408408
# due to bug https://github.com/python-pillow/Pillow/issues/2161
409409
im = Image.new("RGBA", (1280, 1280), (0x20, 0x40, 0x60, 0xFF))

src/libImaging/GifEncode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ static int glzwe(GIFENCODERSTATE *st, const UINT8 *in_ptr, UINT8 *out_ptr,
105105
st->head = st->codes[st->probe] >> 20;
106106
goto encode_loop;
107107
} else {
108-
/* Reprobe decrement must be nonzero and relatively prime to table
108+
/* Reprobe decrement must be non-zero and relatively prime to table
109109
* size. So, any odd positive number for power-of-2 size. */
110110
if ((st->probe -= ((st->tail << 2) | 1)) < 0) {
111111
st->probe += TABLE_SIZE;

src/libImaging/Jpeg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ typedef struct {
7474
/* Optimize Huffman tables (slow) */
7575
int optimize;
7676

77-
/* Disable automatic conversion of RGB images to YCbCr if nonzero */
77+
/* Disable automatic conversion of RGB images to YCbCr if non-zero */
7878
int keep_rgb;
7979

8080
/* Stream type (0=full, 1=tables only, 2=image only) */

0 commit comments

Comments
 (0)