Skip to content

Commit

Permalink
Removed comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski committed Jan 30, 2023
1 parent 0f5b9bf commit 20c5706
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/awkward/_connect/numba/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,17 +471,17 @@ def lower_complex_from_integer_or_float(context, builder, sig, args):

if isinstance(xtype, numba.types.Integer) and xtype.signed:
z_real = builder.sitofp(xval, context.get_value_type(numba.types.float64))
z_imag = z_real.type(0) # noqa: UP003 (this is not the Python 'int' type)
z_imag = z_real.type(0) # noqa: UP003
elif isinstance(xtype, numba.types.Integer):
z_real = builder.uitofp(xval, context.get_value_type(numba.types.float64))
z_imag = z_real.type(0) # noqa: UP003 (this is not the Python 'int' type)
z_imag = z_real.type(0) # noqa: UP003
elif xtype.bitwidth < 64:
z_real = builder.fpext(xval, context.get_value_type(numba.types.float64))
elif xtype.bitwidth > 64:
z_real = builder.fptrunc(xval, context.get_value_type(numba.types.float64))
else:
z_real = xval
z_imag = z_real.type(0) # noqa: UP003 (this is not the Python 'int' type)
z_imag = z_real.type(0) # noqa: UP003

call(
context,
Expand Down

0 comments on commit 20c5706

Please sign in to comment.