Skip to content

Commit 758c3e1

Browse files
committed
fix pre-commit
1 parent 7fbfaa4 commit 758c3e1

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
@@ -101,8 +101,8 @@ dstTy convert_impl(const srcTy &v)
101101
std::is_integral_v<dstTy> && std::is_unsigned_v<dstTy>) {
102102
// for negative values, cast through signed integer to get two's
103103
// complement wrapping
104-
std::conditional_t<sizeof(dstTy) < sizeof(std::int32_t),
105-
std::int32_t, std::int64_t>;
104+
std::conditional_t<sizeof(dstTy) < sizeof(std::int32_t), std::int32_t,
105+
std::int64_t>;
106106
return (v < srcTy{0})
107107
? static_cast<dstTy>(static_cast<intermediateT>(v))
108108
: 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)