Skip to content

Commit a134123

Browse files
committed
Fix signed/unsigned integer naming mix-up.
1 parent cc3c8d9 commit a134123

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sparse/mlir_backend/_dtypes.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ def np_dtype(self) -> np.dtype:
7676
return np.dtype(getattr(np, f"uint{self.bit_width}"))
7777

7878

79-
int8 = UnsignedIntegerDType(bit_width=8)
80-
int16 = UnsignedIntegerDType(bit_width=16)
81-
int32 = UnsignedIntegerDType(bit_width=32)
82-
int64 = UnsignedIntegerDType(bit_width=64)
79+
uint8 = UnsignedIntegerDType(bit_width=8)
80+
uint16 = UnsignedIntegerDType(bit_width=16)
81+
uint32 = UnsignedIntegerDType(bit_width=32)
82+
uint64 = UnsignedIntegerDType(bit_width=64)
8383

8484

8585
@dataclasses.dataclass(eq=True, frozen=True, kw_only=True)
@@ -89,10 +89,10 @@ def np_dtype(self) -> np.dtype:
8989
return np.dtype(getattr(np, f"int{self.bit_width}"))
9090

9191

92-
uint8 = SignedIntegerDType(bit_width=8)
93-
uint16 = SignedIntegerDType(bit_width=16)
94-
uint32 = SignedIntegerDType(bit_width=32)
95-
uint64 = SignedIntegerDType(bit_width=64)
92+
int8 = SignedIntegerDType(bit_width=8)
93+
int16 = SignedIntegerDType(bit_width=16)
94+
int32 = SignedIntegerDType(bit_width=32)
95+
int64 = SignedIntegerDType(bit_width=64)
9696

9797

9898
intp: SignedIntegerDType = locals()[f"int{_PTR_WIDTH}"]

0 commit comments

Comments
 (0)