Skip to content

Commit f025367

Browse files
committed
fix pre-commit
1 parent afb214f commit f025367

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

dpnp/tensor/libtensor/include/utils/type_utils.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ dstTy convert_impl(const srcTy &v)
102102
// for negative values, cast through signed integer to get two's
103103
// complement wrapping
104104
using intermediateT =
105-
std::conditional_t<sizeof(dstTy) < sizeof(std::int32_t), std::int32_t,
106-
std::int64_t>;
105+
std::conditional_t<sizeof(dstTy) < sizeof(std::int32_t),
106+
std::int32_t, std::int64_t>;
107107
return (v < srcTy{0})
108108
? static_cast<dstTy>(static_cast<intermediateT>(v))
109109
: static_cast<dstTy>(v);

dpnp/tests/tensor/test_usm_ndarray_ctor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ def test_astype_gh_2121():
11031103
def test_astype_gh_2882():
11041104
get_queue_or_skip()
11051105

1106-
x = dpt.asarray([160., 120.], dtype="f4")
1106+
x = dpt.asarray([160.0, 120.0], dtype="f4")
11071107
r = dpt.astype(x, dpt.uint8)
11081108
expected = dpt.asarray([160, 120], dtype="u1")
11091109
assert dpt.all(r == expected)

0 commit comments

Comments
 (0)