Skip to content

Commit

Permalink
better
Browse files Browse the repository at this point in the history
  • Loading branch information
robert3005 committed Mar 20, 2024
1 parent fe8fbe4 commit 90f2355
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyvortex/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ fn dtype_bool(py: Python<'_>, nullable: bool) -> PyResult<Py<PyDType>> {
#[pyo3(signature = (width = None, signed = true, nullable = false))]
fn dtype_int(
py: Python<'_>,
width: Option<i16>,
width: Option<u16>,
signed: bool,
nullable: bool,
) -> PyResult<Py<PyDType>> {
Expand Down
4 changes: 2 additions & 2 deletions vortex-schema/src/dtype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ pub enum IntWidth {
_128,
}

impl From<i16> for IntWidth {
fn from(item: i16) -> Self {
impl From<u16> for IntWidth {
fn from(item: u16) -> Self {
match item {
8 => IntWidth::_8,
16 => IntWidth::_16,
Expand Down

0 comments on commit 90f2355

Please sign in to comment.