Skip to content

Commit c3e69ee

Browse files
committed
Add explicit conversion to nb::int
1 parent c4ad471 commit c3e69ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Bindings/Python/IRAttributes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ class PyDenseIntElementsAttribute
13891389
// TODO: consider caching the type properties in the constructor to avoid
13901390
// querying them on each element access.
13911391
if (mlirTypeIsAIndex(type)) {
1392-
return mlirDenseElementsAttrGetIndexValue(*this, pos);
1392+
return nb::int_(mlirDenseElementsAttrGetIndexValue(*this, pos));
13931393
}
13941394
unsigned width = mlirIntegerTypeGetWidth(type);
13951395
bool isUnsigned = mlirIntegerTypeIsUnsigned(type);

0 commit comments

Comments
 (0)