Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd20d7f8

Browse files
authored
Fix incorrect use of assignment in place of an equality test. (#108)
1 parent2d18aec commitd20d7f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎tests/test_pythoncapi_compat_cext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1662,7 +1662,7 @@ check_get_constant(PyObject* (*get_constant)(unsigned int), int borrowed)
16621662

16631663
// Py_CONSTANT_FALSE
16641664
obj=get_constant(Py_CONSTANT_FALSE);
1665-
assert(obj=Py_False);
1665+
assert(obj==Py_False);
16661666
CLEAR(obj);
16671667

16681668
// Py_CONSTANT_TRUE

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp