We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a756f5e commit 3175756Copy full SHA for 3175756
pythonbpf/binary_ops.py
@@ -21,7 +21,7 @@ def get_operand_value(func, operand, builder, local_sym_tab):
21
raise ValueError(f"Undefined variable: {operand.id}")
22
elif isinstance(operand, ast.Constant):
23
if isinstance(operand.value, int):
24
- cst = ir.Constant(ir.IntType(64), operand.value)
+ cst = ir.Constant(ir.IntType(64), int(operand.value))
25
return cst, [cst], None
26
raise TypeError(f"Unsupported constant type: {type(operand.value)}")
27
elif isinstance(operand, ast.BinOp):
0 commit comments