Skip to content

Commit 246510c

Browse files
committed
crc: makes try_from code reuse architecture agnostic, #6467
1 parent 3b8963b commit 246510c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clarity-types/src/types/signatures.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ impl From<BufferLength> for u32 {
163163
impl TryFrom<u32> for BufferLength {
164164
type Error = CheckErrors;
165165
fn try_from(data: u32) -> Result<BufferLength, CheckErrors> {
166-
Self::try_from(data as usize)
166+
Self::try_from(data as i128)
167167
}
168168
}
169169

@@ -244,7 +244,7 @@ impl From<StringUTF8Length> for u32 {
244244
impl TryFrom<u32> for StringUTF8Length {
245245
type Error = CheckErrors;
246246
fn try_from(data: u32) -> Result<StringUTF8Length, CheckErrors> {
247-
Self::try_from(data as usize)
247+
Self::try_from(data as i128)
248248
}
249249
}
250250

0 commit comments

Comments
 (0)