Skip to content

Commit

Permalink
Merge branch 'hpy_backend' into fannkuch_test_fixes_rebased
Browse files Browse the repository at this point in the history
  • Loading branch information
Du Toit Spies committed Jan 25, 2024
2 parents 554b37b + f7a04ee commit 0cbe8d4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion Cython/Compiler/ExprNodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -7524,7 +7524,7 @@ def generate_evaluation_code(self, code):
# For the fairly plausible special case where item is a temporary
# with a refcount of 1 (so created specifically for us),
# avoid making a copy
code.putln("#if CYTHON_COMPILING_IN_CPYTHON")
code.putln("#if CYTHON_COMPILING_IN_CPYTHON && !CYTHON_USING_HPY")
code.putln("if (Py_REFCNT(%s) == 1) {" % item.py_result())
code.putln("%s = %s;" % (self.result(), item.py_result()))
item.generate_post_assignment_code(code)
Expand Down
3 changes: 0 additions & 3 deletions Cython/Utility/ModuleSetupCode.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,6 @@
#ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
#define CYTHON_UPDATE_DESCRIPTOR_DOC 1
#endif
#ifndef CYTHON_USE_FREELISTS
#define CYTHON_USE_FREELISTS 1
#endif
#endif

#if defined(HPY)
Expand Down

0 comments on commit 0cbe8d4

Please sign in to comment.