Skip to content

Commit 721312e

Browse files
committed
avoid using Cython compile-time 'IF'
1 parent 7cccac0 commit 721312e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

symengine/lib/symengine_wrapper.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5235,8 +5235,8 @@ def Lambdify(args, *exprs, cppbool real=True, backend=None, order='C',
52355235
52365236
"""
52375237
if backend is None:
5238-
IF HAVE_SYMENGINE_LLVM and real:
5239-
backend_default = 'llvm'
5238+
IF HAVE_SYMENGINE_LLVM:
5239+
backend_default = 'llvm' if real else 'lambda'
52405240
ELSE:
52415241
backend_default = 'lambda'
52425242
backend = os.getenv('SYMENGINE_LAMBDIFY_BACKEND', backend_default)

0 commit comments

Comments
 (0)