Skip to content

Commit 3328026

Browse files
authored
Fix int_from_value using unsigned int (#40)
1 parent 4d509ec commit 3328026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/from_value.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ macro_rules! int_from_value {
6262
$(
6363
impl FromValue for $t {
6464
fn from_value(value: Result<dynamic::ValueAccessor>) -> InputValueResult<Self> {
65-
Self::try_from(value?.u64()?).map_err(|_| {
65+
Self::try_from(value?.i64()?).map_err(|_| {
6666
InputValueError::custom(format!(
6767
"Only integers from {} to {} are accepted for {}.",
6868
Self::MIN,

0 commit comments

Comments
 (0)